-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.eslintrc.js
43 lines (41 loc) · 1.17 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: ["airbnb-base", "eslint:recommended"],
env: {
browser: true,
es6: true,
node: true,
mocha: true,
jasmine: true,
jest: true
},
rules: {
// enable additional rules
indent: [
"error",
4,
{
SwitchCase: 1
}
],
"linebreak-style": ["error", "unix"],
quotes: ["error", "single"],
semi: ["error", "always"],
"no-unused-vars": ["error", { vars: "local" }],
"no-plusplus": "off",
// override default options for rules from base configurations
"no-cond-assign": ["error", "always"],
eqeqeq: ["warn", "smart"],
// disable rules from base configurations
"no-console": "off",
"no-alert": "off",
"func-names": "off",
"block-scoped-var": "error",
"guard-for-in": "error",
"no-loop-func": "error",
"no-self-compare": "error",
"no-unneeded-ternary": "error",
"import/prefer-default-export": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off"
}
};