-
Notifications
You must be signed in to change notification settings - Fork 195
/
.eslintrc
47 lines (47 loc) · 1.09 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
{
"root": true,
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true,
},
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": ["react"],
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"jsx-quotes": ["error", "prefer-double"],
"keyword-spacing": ["error", { "after": true }],
"no-console": "warn",
"no-const-assign": "error",
"no-duplicate-imports": "error",
"no-trailing-spaces": "error",
"no-unused-vars": "warn",
"no-use-before-define": "error",
"no-useless-concat": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error",
"quotes": ["error", "single"],
"radix": ["error", "always"],
"semi": ["error", "always"],
"template-curly-spacing": ["error", "never"],
"react/no-find-dom-node": ["off"]
}
}