mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-23 20:48:23 +00:00
update eslint rules
This commit is contained in:
parent
63bc9a909c
commit
9b9f5743f7
@ -4,14 +4,23 @@
|
|||||||
"es6": true,
|
"es6": true,
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended",
|
"extends": [
|
||||||
|
"eslint:recommended",
|
||||||
|
"plugin:react/recommended"
|
||||||
|
],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"ecmaVersion": 2017
|
"ecmaVersion": 2017,
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"jsx": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
"__": true
|
"__": true
|
||||||
},
|
},
|
||||||
|
"plugins": [
|
||||||
|
"react"
|
||||||
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"accessor-pairs": "error",
|
"accessor-pairs": "error",
|
||||||
"array-bracket-newline": "error",
|
"array-bracket-newline": "error",
|
||||||
@ -111,6 +120,7 @@
|
|||||||
"no-confusing-arrow": "error",
|
"no-confusing-arrow": "error",
|
||||||
"no-console": "off",
|
"no-console": "off",
|
||||||
"no-continue": "off",
|
"no-continue": "off",
|
||||||
|
"no-debugger": "warn",
|
||||||
"no-div-regex": "error",
|
"no-div-regex": "error",
|
||||||
"no-duplicate-imports": "error",
|
"no-duplicate-imports": "error",
|
||||||
"no-else-return": 2,
|
"no-else-return": 2,
|
||||||
@ -246,7 +256,7 @@
|
|||||||
"error",
|
"error",
|
||||||
"last"
|
"last"
|
||||||
],
|
],
|
||||||
"sort-imports": "error",
|
"sort-imports": "off",
|
||||||
"sort-keys": "off",
|
"sort-keys": "off",
|
||||||
"sort-vars": "off",
|
"sort-vars": "off",
|
||||||
"space-before-blocks": "off",
|
"space-before-blocks": "off",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user