update eslint rules

This commit is contained in:
Jonathan Rainville 2018-08-01 13:54:13 -04:00 committed by Pascal Precht
parent 63bc9a909c
commit 9b9f5743f7
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 13 additions and 3 deletions

View File

@ -4,14 +4,23 @@
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"__": true
},
"plugins": [
"react"
],
"rules": {
"accessor-pairs": "error",
"array-bracket-newline": "error",
@ -111,6 +120,7 @@
"no-confusing-arrow": "error",
"no-console": "off",
"no-continue": "off",
"no-debugger": "warn",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": 2,
@ -246,7 +256,7 @@
"error",
"last"
],
"sort-imports": "error",
"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "off",
"space-before-blocks": "off",