-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Individual configs added. Closed #19
- Loading branch information
mlegenhausen
committed
Nov 11, 2021
1 parent
a5b621e
commit a3ca03f
Showing
16 changed files
with
2,286 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "./lib/index.js", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
lib/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,41 @@ | ||
{ | ||
"name": "eslint-config-werk85", | ||
"version": "4.4.0", | ||
"version": "5.0.0-beta.4", | ||
"main": "index.js", | ||
"repository": "git@github.com:werk85/eslint-rules.git", | ||
"repository": "git@github.com:werk85/eslint-config-werk85.git", | ||
"author": "Malte Legenhausen <malte@werk85.de>", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "tsc -p tsconfig.cjs.json && ts-node ./scripts/build.ts", | ||
"lint": "eslint --ext .js,.ts .", | ||
"postinstall": "husky install", | ||
"prepublishOnly": "ts-node ./scripts/pre-publish.ts", | ||
"prerelease": "yarn build", | ||
"release": "ts-node ./scripts/release.ts" | ||
}, | ||
"dependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.19.0", | ||
"@typescript-eslint/parser": "^4.19.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-import-resolver-typescript": "^2.4.0", | ||
"eslint-plugin-deprecation": "^1.2.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jest": "^24.4.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint-plugin-react": "^7.23.1", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-import-resolver-typescript": "^2.5.0", | ||
"eslint-plugin-deprecation": "^1.2.1", | ||
"eslint-plugin-import": "^2.24.2", | ||
"eslint-plugin-jest": "^25.0.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.26.1", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"prettier": "^2.2.1", | ||
"typescript": "^4.2.3" | ||
"prettier": "^2.4.1", | ||
"typescript": "^4.4.3" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^7.22.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^7.22.0" | ||
"@types/eslint": "^7.28.1", | ||
"@types/node": "^16.10.3", | ||
"eslint": "^7.22.0", | ||
"husky": "^7.0.2", | ||
"npm-check-updates": "^11.8.5", | ||
"ts-node": "^10.2.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import fs from 'fs' | ||
import pkg from '../package.json' | ||
|
||
fs.writeFileSync( | ||
'lib/package.json', | ||
JSON.stringify( | ||
Object.fromEntries(Object.entries(pkg).filter(([key]) => !['scripts', 'devDependencies', 'files'].includes(key))), | ||
undefined, | ||
2 | ||
), | ||
'utf8' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
console.error('"yarn publish" can not be run from root, run "yarn release" instead') | ||
process.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import cp from 'child_process' | ||
import pkg from '../package.json' | ||
|
||
cp.execFileSync('yarn', ['publish', '--new-version', pkg.version, '--tag', 'beta'], { cwd: 'lib', stdio: 'inherit' }) |
Oops, something went wrong.