-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.14 KB
/
.eslintrc.js
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
module.exports = {
"extends": "airbnb-base",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"classes": true,
"defaultParams": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jquery": true
},
"plugins": [
"import"
],
"rules": {
"semi": [1, "never"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-mixed-operators": ["error", {"allowSamePrecedence": true}],
"no-confusing-arrow": ["error", {"allowParens": true}],
"no-underscore-dangle": "off",
"no-floating-decimal": 0,
"no-param-reassign": 1,
"arrow-body-style": [1, "as-needed", { "requireReturnForObjectLiteral": true }],
"spaced-comment": ["error", "always", { "exceptions": ["-", "+"] }],
"quote-props": 1,
"no-continue": "off",
"import/export": 2,
"import/extensions": 1,
"class-methods-use-this": ["error", { "exceptMethods": ["render"] }],
"func-names": 0,
}
};