-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
50 lines (50 loc) · 1.13 KB
/
.eslintrc.json
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
{
"extends": "airbnb-base",
"env": {
"browser": false,
"node": true,
"es6": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"arrow-parens": [2, "always"],
"indent": [2, "tab", {
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
"SwitchCase": 1
}],
"no-tabs": 0,
"no-console": 0,
"quotes": 0,
"brace-style": [2, "1tbs"],
"comma-dangle": ["error", "always-multiline"],
"max-len": [2, 120],
"semi": [2, "always", { "omitLastInOneLineBlock": true }],
"no-cond-assign": [2, "except-parens"],
"func-names": 0,
"no-param-reassign": [2, { "props": false }],
"no-unused-vars": 1,
"no-confusing-arrow": 0,
"new-cap": 0,
"no-restricted-syntax": 0,
"prefer-destructuring": [2, {
"object": true,
"array": false
}],
"function-paren-newline": 0,
"comma-dangle": [2, {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}]
}
}