-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.testconfig.js
50 lines (48 loc) · 1.08 KB
/
eslint.testconfig.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
44
45
46
47
48
49
50
import eslintPluginImport from "eslint-plugin-import";
import eslintPluginJs from "@eslint/js";
import globals from "globals";
const config = [
eslintPluginImport.flatConfigs.recommended,
eslintPluginJs.configs.recommended,
{
"files": ["**/*.js"],
"languageOptions": {
"ecmaVersion": "latest",
"globals": {
...globals.browser,
...globals.node,
"config": "readonly",
"Log": "readonly",
"MM": "readonly",
"Module": "readonly",
"moment": "readonly"
},
"sourceType": "commonjs"
},
"linterOptions": {
"reportUnusedDisableDirectives": "off"
},
"rules": {
"no-prototype-builtins": "off",
"no-redeclare": "off",
"no-undef": "off"
}
},
{
"files": ["**/*.mjs"],
"languageOptions": {
"ecmaVersion": "latest",
"globals": {
...globals.node
},
"sourceType": "module"
},
"linterOptions": {
"reportUnusedDisableDirectives": "off"
},
"rules": {
"import/no-unresolved": "off"
}
}
];
export default config;