-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
50 lines (50 loc) · 1.36 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
{
"extends": [
"react-app",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"plugins": [
"prettier"
],
"globals": {
"deepFreeze": true,
"expect": true,
"getMockComponent": true,
"getMockStore": true,
"getReduxFormProps": true,
"getReactIntlSpies": true,
"makeGeneratorSnapshot": true,
"testReducer": true,
"render": true,
"mount": true,
"shallow": true
},
"rules": {
"camelcase": 0,
"eqeqeq": [ "error", "allow-null" ],
"new-cap": [ "error", { "capIsNew": false } ],
"no-console": [ "error", { "allow": [ "error" ] } ],
"no-var": "error",
"no-warning-comments": ["warn", { "terms": [ "todo", "fixme" ], "location": "anywhere" }],
"prettier/prettier": ["error", { "tabWidth": 4, "singleQuote": true, "printWidth": 120 }],
"react/display-name": "off",
"react/jsx-key": "error",
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-undef": "error",
"react/jsx-pascal-case": ["error", { "allowAllCaps": true }],
"react/no-string-refs": "error",
"react/prefer-es6-class": "error",
"react/prefer-stateless-function": "error",
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"react/sort-prop-types": "error",
"jsx-a11y/href-no-hash": "off",
"no-underscore-dangle": 0,
"prefer-const": ["error", {
"destructuring": "any"
}]
}
}