forked from vicrazumov/React.Spritz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
80 lines (80 loc) · 2.13 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"parser": "babel-eslint",
"plugins": [
"dependencies",
"react",
"import"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"comma-spacing": ["warn"],
"dependencies/no-unresolved": [
"error"
],
"indent": ["warn", 2, {"SwitchCase": 1}],
"key-spacing": ["warn", {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": ["warn", {"after": true}],
"jsx-quotes": ["warn", "prefer-double"],
"no-console": "warn",
"no-extra-boolean-cast": "off",
"no-multi-spaces": "error",
"no-spaced-func": "warn",
"no-unused-vars": "error",
"import/no-unresolved": [
"error"
],
"no-new-object":"warn",
"no-array-constructor":"warn",
"no-useless-constructor": "warn",
"object-shorthand":"warn",
"quote-props": ["warn", "as-needed"],
"react/display-name": "warn",
"react/prop-types": ["warn", {
"ignore": ["children", "history", "location", "params", "routes"]
}],
"react/no-unused-prop-types": "warn",
"react/default-props-match-prop-types": "warn",
"react/no-direct-mutation-state": "error",
"react/no-danger": "off",
"semi": ["warn", "always"],
"space-before-blocks": ["warn", "always"],
"space-before-function-paren": ["warn", "never"],
"spaced-comment": ["warn", "always"],
"space-infix-ops": "warn",
"space-in-parens": ["warn", "never"],
"space-unary-ops": ["warn", {
"words": true,
"nonwords": false
}]
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"globals": {
"Promise": true
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"jsx": true,
"modules": true,
"restParams": true,
"templateStrings": true,
"spread": true
},
"sourceType": "module"
}
}