-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
36 lines (36 loc) · 1.24 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
module.exports = {
parser: "babel-eslint",
extends: "airbnb-base",
rules: {
"lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
"padded-blocks": ["error", { "classes": "always" }],
"indent": 0,
"no-mixed-operators":[
"error",
{
"groups": [
//["+", "-", "*", "/", "%", "**"],
//["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["in", "instanceof"]
],
"allowSamePrecedence": true
}
],
"no-underscore-dangle": ["error", { "allowAfterThis": true, "allowAfterSuper": true }],
"max-len": ["error", { "code": 120 }],
"spaced-comment": [0],
"import/no-useless-path-segments": ["never"],
"import/no-absolute-path": ["never"],
"import/no-unresolved": ["never"],
"object-curly-newline": "off",
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": "off",
"prefer-destructuring": "off",
"arrow-body-style": "off",
},
"env": {
"browser": true,
//"node": true
}
};