-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
53 lines (53 loc) · 1.21 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
49
50
51
52
53
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"env": {
"node": true,
"jest": true,
"browser": true
},
"plugins": [
"react",
"import"
],
"globals": {
"Promise": true
},
"rules": {
"no-constant-condition": 0,
"semi": [1, "always"],
"comma-dangle": [1, "always-multiline"],
"no-restricted-globals": [2, "self", "Text"],
"no-console": 0,
"no-undef": 2,
"camelcase": 1,
"block-scoped-var": 2,
"no-unused-vars": 1,
"no-trailing-spaces": 1,
"keyword-spacing": 1,
"object-curly-spacing": [1, "never"],
"curly": [2, "multi-line"],
"quotes": [1, "double", {"avoidEscape": true}],
"import/no-unresolved": [2, {commonjs: true}],
"react/jsx-uses-react": 2,
"react/jsx-key": 2,
"react/jsx-no-bind": 1,
"react/jsx-no-duplicate-props": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-uses-vars": 2,
"react/jsx-no-undef": 2,
"no-class-assign": 0
},
}