-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy patheslint.js
More file actions
45 lines (44 loc) · 848 Bytes
/
eslint.js
File metadata and controls
45 lines (44 loc) · 848 Bytes
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
var js = require("@eslint/js");
var globals = require("globals");
module.exports = [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2018,
sourceType: "commonjs",
globals: {
...globals.node,
...globals.es2017,
},
},
rules: {
"block-scoped-var": "error",
"eqeqeq": ["error", "smart"],
"max-depth": ["warn", { max: 3 }],
"max-statements": ["warn", { max: 30 }],
"new-cap": "warn",
"no-extend-native": "error",
"no-unused-vars": "warn",
},
},
{
files: ["test/**"],
languageOptions: {
globals: {
...globals.node,
...globals.es2017,
...globals.mocha,
},
},
rules: {
"max-len": "off",
"max-statements": "off"
}
},
{
ignores: [
"coverage/**",
"test/fixtures/**"
]
}
];