mirror of https://github.com/embarklabs/embark.git
build: cleanup eslint configuration
Move `packages/embark`'s eslint config into the monorepo root. Remove `"plugin:react/recommended"` since it's not commonly needed. Put a `"eslintConfig"` config key/object in `packages/embark`'s `package.json` that directs eslint to extend the root config; other `packages/*` can do likewise.
This commit is contained in:
parent
3f61e314d9
commit
9e035879a7
|
@ -5,19 +5,18 @@
|
|||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:react/recommended"
|
||||
"eslint:recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"sourceType": "module",
|
||||
"ecmaVersion": 2018,
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"globals": {
|
||||
"__": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"react"
|
||||
],
|
||||
|
@ -200,10 +199,13 @@
|
|||
"no-unmodified-loop-condition": "error",
|
||||
"no-unneeded-ternary": "error",
|
||||
"no-unused-expressions": "error",
|
||||
"no-unused-vars": ["error", {
|
||||
"argsIgnorePattern": "^_",
|
||||
"varsIgnorePattern": "^_"
|
||||
}],
|
||||
"no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"argsIgnorePattern": "^_",
|
||||
"varsIgnorePattern": "^_"
|
||||
}
|
||||
],
|
||||
"no-use-before-define": "off",
|
||||
"no-useless-call": "off",
|
||||
"no-useless-computed-key": "error",
|
|
@ -38,6 +38,9 @@
|
|||
"watch:build": "npm run build -- --verbose --watch",
|
||||
"watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "../../.eslintrc.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "7.2.2",
|
||||
"@babel/plugin-proposal-class-properties": "7.3.0",
|
||||
|
@ -187,7 +190,6 @@
|
|||
"embark-test-contract-0": "0.0.2",
|
||||
"embark-test-contract-1": "0.0.1",
|
||||
"eslint": "5.7.0",
|
||||
"eslint-plugin-react": "7.11.1",
|
||||
"mocha-sinon": "1.2.0",
|
||||
"npm-run-all": "4.1.5",
|
||||
"nyc": "13.1.0",
|
||||
|
|
Loading…
Reference in New Issue