-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
56 lines (55 loc) · 1.44 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
51
52
53
54
55
56
module.exports = {
"root": true,
"extends": "airbnb-base",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"allowImportExportEverywhere": false,
},
"env": {
"node": true,
"jest": true
},
"rules": {
// override defaults
"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,
"guard-for-in": 0,
"implicit-arrow-linebreak": 0,
"no-confusing-arrow": 0,
"no-console": 0,
"import/no-cycle": 0,
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-prototype-builtins": 0,
"no-restricted-syntax": 0,
"no-shadow": 0,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"object-curly-newline": 0,
"padded-blocks": 0,
},
};