forked from welldone-software/why-did-you-render
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
59 lines (59 loc) · 1.39 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
59
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react",
"jest"
],
"globals": {
"flushConsoleOutput": true
},
"settings": {
"react": {
"version": "16"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jest/recommended"
],
"env": {
"es6": true,
"node": true,
"browser": true,
"jest/globals": true
},
"rules": {
"semi": ["error", "never"],
"curly": "error",
"no-var": "error",
"quotes": ["error", "single"],
"no-console": ["error"],
"no-debugger": ["warn"],
"no-unused-vars": ["error", {"ignoreRestSiblings": true}],
"eol-last": ["error"],
"object-curly-spacing": ["error"],
"react/prop-types": ["off"],
"react/display-name": ["off"],
"space-before-function-paren": ["error", "never"],
"keyword-spacing": ["error", {"before": false, "after": false, "overrides": {
"from": {"before": true, "after": true},
"import": {"after": true},
"return": {"after": true},
"export": {"after": true},
"default": {"after": true},
"const": {"after": true},
"case": {"after": true},
"as": {"before": true, "after": true}
}}],
"space-before-blocks": ["error", "never"],
"comma-dangle": ["error", "never"],
"jest/expect-expect": ["off"]
}
}