-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
38 lines (38 loc) · 1.73 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
{
"parserOptions": {
"ecmaVersion": 2017
},
"rules": {
"linebreak-style": [
0
],
"semi": [
2,
"always"
],
"semi-spacing": [2, { // http://eslint.org/docs/rules/semi-spacing
"before": false,
"after": true
}],
"no-console": 0,
"strict": ["error", "global"],
"no-catch-shadow": 2, // disallow the catch clause parameter name being the same as a variable in the outer scope (off by default in the node environment)
"no-delete-var": 2, // disallow deletion of variables
"no-label-var": 2, // disallow labels that share a name with a variable
"no-shadow": 2, // disallow declaration of variables already declared in the outer scope
"no-shadow-restricted-names": 2, // disallow shadowing of names such as arguments
"no-undef": 0, // disallow use of undeclared variables unless mentioned in a /*global */ block
"no-undef-init": 2, // disallow use of undefined when initializing variables
"no-undefined": 0, // disallow use of undefined variable (off by default)
"no-unused-vars": 2, // disallow declaration of variables that are not used in the code
"no-use-before-define": 2, // disallow use of variables before they are defined
"complexity": 0, // specify the maximum cyclomatic complexity allowed in a program (off by default)
"no-var": 2, // require let or const instead of var (off by default)
"generator-star-spacing": [2, "before"] // enforce the spacing around the * in generator functions (off by default)
},
"env": {
"node": true,
"mocha": true
},
"extends": "eslint:recommended"
}