Updated ESLint configuration to better match project's code style

This commit is contained in:
shooter0106 2019-09-11 22:23:49 +07:00 committed by Victor Perevertkin
parent 8950b28d93
commit 91455cf1a3

View File

@ -4,7 +4,10 @@
"commonjs": true, "commonjs": true,
"es6": true "es6": true
}, },
"extends": "eslint:recommended", "extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"globals": { "globals": {
"Atomics": "readonly", "Atomics": "readonly",
"SharedArrayBuffer": "readonly" "SharedArrayBuffer": "readonly"
@ -13,8 +16,8 @@
"ecmaVersion": 2018 "ecmaVersion": 2018
}, },
"rules": { "rules": {
"indent": ["error", "tab"], "indent": ["error", 2],
"linebreak-style": ["error", "windows"], "linebreak-style": ["error", "unix"],
"quotes": ["error", "single"], "quotes": ["error", "single"],
"semi": ["error", "always"] "semi": ["error", "always"]
} }