-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (49 loc) · 1.29 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
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
"env": {
"browser": true,
"node": true,
},
"extends": "airbnb",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"allowImportExportEverywhere": false,
},
"rules": {
// override defaults
"comma-dangle": [2, "only-multiline"],
"eqeqeq": [2, "smart"],
"max-len": [2, {
"code": 120, "tabWidth": 2, "ignoreUrls": true, "ignoreComments": false,
"ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true,
}],
"newline-per-chained-call": [2, {"ignoreChainWithDepth": 4}],
"no-cond-assign": [2, "except-parens"],
"no-multi-spaces": [2, {"exceptions": {
"ImportDeclaration": true,
"Property": true,
"VariableDeclarator": true,
}}],
"prefer-destructuring": [2, {
"array": false,
"object": true
}, {
"enforceForRenamedProperties": false
}],
"space-before-function-paren": [2, "never"],
// disable defaults
"arrow-parens": 0,
"brace-style": 0,
"consistent-return": 0,
"func-names": 0,
"no-confusing-arrow": 0,
"no-console": 0,
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-shadow": 0,
"no-underscore-dangle": 0,
"object-curly-newline": 0,
"padded-blocks": 0,
},
};