-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
58 lines (58 loc) · 1.33 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
54
55
56
57
58
{
"parser": "babel-eslint",
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"node": true,
"browser": false,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"jsx": true,
"experimentalObjectRestSpread": true
},
"rules": {
"comma-dangle": ["error", "never"],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"eol-last": ["error", "always"],
"indent": [
"error",
2,
{
"MemberExpression": 1
}
],
"no-multiple-empty-lines": ["error"],
"no-new-symbol": "error",
"no-trailing-spaces": ["error"],
"no-undef": ["error"],
"no-unused-vars": ["error"],
"no-console": 0,
"object-curly-spacing": ["error", "always"],
"object-shorthand": "error",
"prefer-const": 2,
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-in-parens": ["error", "never"],
"strict": [2, "never"],
"max-len": ["error", 120],
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-imports": "error",
"no-duplicate-case": "error",
"no-dupe-class-members": "error"
},
"globals": {
"document": "readonly",
"window": "readonly",
"navigator": "readonly",
"FileReader": "readonly"
}
}