-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
47 lines (45 loc) · 1.23 KB
/
eslint.config.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
// using Flat Config
const tsPlugin = require("@typescript-eslint/eslint-plugin");
const tsParser = require("@typescript-eslint/parser");
const globals = require("globals");
module.exports = [
"eslint:recommended",
{
rules: {
"no-redeclare": "off"
}
},
{
files: ["src-ts/**/*.ts", "test/**/*.ts"],
languageOptions: {
parser: tsParser,
globals: {
...globals.node,
"WebAssembly": false,
"EmscriptenWasm": false
}
},
plugins: {
"@typescript-eslint": tsPlugin
},
rules: {
...tsPlugin.configs["recommended"].rules,
...tsPlugin.configs["eslint-recommended"].rules,
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-misused-new": "off"
}
},
{
files: ["test/**/*.ts"],
languageOptions: {
parser: tsParser,
globals: {
it: "readonly",
describe:"readonly",
expect: "readonly",
beforeEach: "readonly"
}
},
}
];