-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc
47 lines (47 loc) · 1.12 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
{
"extends": ["eslint:recommended", "prettier"],
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["prettier"],
"rules": {
"prettier/prettier": [
"error",
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
],
"indent": ["error", 2, {"SwitchCase": 1}],
"no-console": 1,
"keyword-spacing": [2],
"space-before-blocks": [2],
"semi": [1, "never"],
"no-case-declarations": 0,
"key-spacing": [1, {"mode": "minimum"}],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-dangle": [1, "always-multiline"],
"space-infix-ops": [1],
"arrow-spacing": [1, { "before": true, "after": true }],
"no-confusing-arrow": [2],
"prefer-arrow-callback": [2],
"prefer-const": [0],
"max-len": [1, {
"code": 100,
"ignoreComments": true,
"ignorePattern": ": ",
"ignoreUrls": true
}],
"react/display-name": [0]
},
"parser": "babel-eslint",
"globals": {
"__DEV__": true
}
}