-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.json
47 lines (47 loc) · 1.11 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
{
"extends": ["eslint-config-airbnb-base"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true
},
"rules": {
"no-param-reassign": [2, { "props": false }],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}
],
"max-len": [
"error",
{
"code": 150,
"ignoreTemplateLiterals": true
}
],
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": false }],
"no-use-before-define": ["error", "nofunc"],
"function-paren-newline": "off",
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"operator-linebreak": "off",
"implicit-arrow-linebreak": "off",
"object-curly-newline": "off",
"no-underscore-dangle": "off",
"prefer-destructuring": "off"
}
}