-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
executable file
·43 lines (43 loc) · 1.07 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
module.exports = {
"extends": [
"eslint-config-airbnb-base",
"eslint-config-airbnb-base/rules/strict"
],
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"impliedStrict": true
}
},
"env": {
"es6": true,
"node": true,
"mocha": true
},
"globals": {
"beforeEach": true,
"afterEach": true,
"describe": true,
"expect": true,
"it": true,
"xdescribe": true,
"xit": true
},
"rules": {
"camelcase": "error",
"comma-dangle": 0,
"class-methods-use-this": 0,
"no-use-before-define": ["error", { "functions": false }],
"indent": ["warn", 2, { "VariableDeclarator": {"var": 2, "let": 2, "const": 3}, "SwitchCase": 1 }],
"keyword-spacing": "warn",
"new-cap": ["warn", {"properties": false}],
"no-control-regex": 0,
"no-unused-vars": "warn",
"no-console": "off",
"no-param-reassign": "off",
"one-var": ["warn", "always"],
"padded-blocks": ["warn", {"classes":"always"}],
"semi": ["error", "never"],
"space-before-function-paren": ["error", "never"]
}
}