-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
122 lines (113 loc) · 2.83 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"env": {
"browser": false,
"es6": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"window": true,
"document": true,
"localStorage": true,
"sessionStorage": true,
"XMLHttpRequest": true
},
"plugins": [
"react"
],
"settings": {
"react": {
"pragma": "React"
}
},
"rules": {
"arrow-parens": ["warn", "as-needed"],
"arrow-spacing": "warn",
"block-scoped-var": "warn",
"brace-style": [ "warn", "stroustrup", {
"allowSingleLine": true
}],
"comma-dangle": [ "warn", "always-multiline" ],
"comma-spacing": "warn",
"comma-style": "warn",
"curly": "warn",
"dot-notation": "warn",
"eol-last": "error",
"eqeqeq": "warn",
"func-call-spacing": [ "warn", "never" ],
"func-style": [ "error", "declaration", {
"allowArrowFunctions": true
}],
"generator-star-spacing": "warn",
"indent": [ "warn", 2, {
"MemberExpression": 0,
"SwitchCase": 1
}],
"jsx-quotes": "error",
"new-parens": "error",
"no-caller": "error",
"no-console": "off",
"no-duplicate-imports": "error",
"no-else-return": "warn",
"no-eval": "error",
"no-extra-label": "warn",
"no-floating-decimal": "warn",
"no-lonely-if": "warn",
"no-mixed-operators": "warn",
"no-multi-str": "error",
"no-negated-in-lhs": "warn",
"no-undef-init": "error",
"no-unused-expressions": "error",
"no-useless-computed-key": "warn",
"no-useless-constructor": "warn",
"no-useless-rename": "warn",
"no-useless-return": "warn",
"no-var": "error",
"no-whitespace-before-property": "warn",
"object-curly-spacing": [ "error", "always" ],
"prefer-const": "warn",
"quote-props": [ "error", "as-needed" ],
"quotes": [ "warn", "single", {
"allowTemplateLiterals": true
}],
"rest-spread-spacing": ["warn", "never"],
"semi-spacing": "warn",
"semi-style": [ "warn", "last" ],
"semi": [ "error", "always" ],
"space-before-blocks": "warn",
"space-before-function-paren": "warn",
"space-infix-ops": "warn",
"space-in-parens": ["warn", "never"],
"spaced-comment": ["warn", "always"],
"template-curly-spacing": "warn",
"yield-star-spacing": "warn",
"valid-jsdoc": ["warn", {
"requireReturn": false,
"requireReturnDescription": false,
"requireParamDescription": false
}],
"react/display-name": "off",
"react/jsx-curly-spacing": "off",
"react/jsx-equals-spacing": "error",
"react/jsx-indent": [ "warn", 2 ],
"react/jsx-indent-props": [ "warn", 2 ],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-tag-spacing": "warn",
"react/no-children-prop": "off",
"react/no-find-dom-node": "warn",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off"
}
}