-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
44 lines (44 loc) · 1.3 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
{
"extends": ["react-app"],
"parser": "babel-eslint",
"globals": {
"GLOBAL": true,
"expect": true,
"render": true,
"__DEV__": true,
"jasmine": true,
"element": true,
"device": true,
"by": true
},
"rules": {
"camelcase": "error",
"eqeqeq": ["error", "allow-null"],
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-nested-ternary": "error",
"no-restricted-syntax": ["error", "SequenceExpression"],
"no-unneeded-ternary": "error",
"no-unused-vars": "error",
"no-var": "error",
"react/display-name": "off",
"react/jsx-no-bind": "warn",
"react/jsx-boolean-value": "error",
"react/jsx-key": "error",
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-undef": "error",
"react/no-string-refs": "error",
"react/prefer-es6-class": "error",
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"react/sort-prop-types": "error",
"curly": "warn",
"comma-dangle": ["error", "always-multiline"]
},
"settings": {
"react": {
"version": "detect"
}
}
}