/
.eslintrc
48 lines (48 loc) · 1.19 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"airbnb"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"curly": "error",
"indent": ["error", 2],
"linebreak-style": ["warn", "windows"],
"no-console": "warn",
"no-else-return": "error",
"no-unneeded-ternary": "error",
"no-useless-return": "error",
"no-var": "warn",
"one-var": ["error", "never"],
"prefer-arrow-callback": "warn",
"quotes": ["warn", "single"],
"react/display-name": ["off"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/no-unescaped-entities": ["off"],
"react/prop-types": "warn",
"semi": ["warn", "always"],
"strict": "error",
"symbol-description": "error",
"yoda": ["error", "never", { "exceptRange": true }]
}
}