-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy path.eslintrc.js
38 lines (38 loc) · 1.05 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
module.exports = {
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true
},
"plugins": [
"import"
],
rules: {
"no-unused-vars": [1, { "vars": "local", "args": "none" }],
"no-debugger": 'warn',
"indent": ["error", 4],
"linebreak-style": 0,
"comma-dangle": 0,
"no-throw-literal": 0,
"prefer-const": 0,
"prefer-rest-params": 'warn',
"default-case": 'warn',
"no-undef": 'warn',
"no-shadow": 'warn',
"no-lonely-if": 0,
"no-use-before-define": 'warn',
"no-return-assign": 'warn',
"no-plusplus": 0,
"no-param-reassign": 0,
"max-len": 0,
"no-trailing-spaces": 0,
"no-console": 0,
"no-confusing-arrow": 0,
"class-methods-use-this": 0,
"no-underscore-dangle": 0,
"one-var-declaration-per-line": ["error", "initializations"],
"one-var": ["error", { "initialized": "never", "uninitialized": "always" }]
},
"globals": {
}
};