-
Notifications
You must be signed in to change notification settings - Fork 54
/
.eslintrc
49 lines (49 loc) · 1.69 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
{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"sourceType": "module"
},
"rules": {
"array-bracket-spacing": [ "error", "always", { "objectsInArrays": false } ],
"comma-dangle": [ "error", "only-multiline" ],
"comma-spacing": [ "error", { "before": false, "after": true } ],
"curly": [ "error", "multi-line" ],
"eol-last": "error",
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ],
"func-names": "off",
"import/no-extraneous-dependencies": [ "error", {
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}],
"import/extensions": "off",
"indent": [ "error", 4 ],
"max-len": "off",
"new-cap": "error",
"no-console": [ "error", { "allow": [ "warn", "error" ] } ],
"no-debugger": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-mixed-requires": "error",
"no-mixed-operators": "off",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-plusplus": "off",
"no-restricted-syntax": "off",
"no-return-assign": "off",
"no-trailing-spaces": "error",
"no-underscore-dangle": "off",
"no-unused-vars": "error",
"no-use-before-define": [ "error", { "functions": false } ],
"prefer-template": "off",
"prefer-destructuring": "off",
"quotes": [ 2, "double" ],
"semi": [ "error", "always" ],
"space-before-function-paren": [ "error", "never" ]
}
}