-
Notifications
You must be signed in to change notification settings - Fork 98
/
.eslintrc
52 lines (52 loc) · 1.68 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
{
"parser": "@babel/eslint-parser",
"extends": "airbnb-base",
"plugins": [
"babel"
],
"env": {
"es6": true,
"browser": true
},
"rules":{
"no-use-before-define": ["warn"],
"import/prefer-default-export": [0],
"import/order": [2, {
"groups": ["builtin", "external", "parent", "sibling", "index"],
"newlines-between": "always"
}],
"no-multiple-empty-lines": [2, {
"maxBOF": 0,
"max": 2,
"maxEOF": 1
}],
"padded-blocks": [2, {
"classes": "always"
}],
"max-len": [2, { "code": 160, "ignorePattern": "^(import|export) .*", "ignoreRegExpLiterals": true, "ignoreStrings": true }],
"no-mixed-operators": [2, { "allowSamePrecedence": true }],
"lines-between-class-members": [2, "always", {
"exceptAfterSingleLine": true
}],
"prefer-destructuring": [2, {
"array": false
}],
"no-unused-expressions": [2, {
"allowShortCircuit": true,
"allowTernary": true
}],
"no-debugger": 1,
"no-return-assign": [2, "except-parens"],
"no-unused-vars": 1,
"no-multi-assign": 0,
"no-plusplus": 0,
"no-bitwise": 0,
"no-case-declarations": 0,
"indent": [2, 4],
"template-curly-spacing": [2, "always"],
"linebreak-style": [2, "windows"],
"object-curly-newline": [2, { "multiline": true, "consistent": true }],
"no-param-reassign": [2, { "props": false }],
"operator-linebreak": [2, "before"]
}
}