-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
36 lines (35 loc) · 963 Bytes
/
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
import duploLint from "@duplojs/eslint";
export default [
{
...duploLint,
rules: {
...duploLint.rules,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/no-unnecessary-type-parameters": "off",
"func-style": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-use-before-define": "off",
"no-useless-assignment": "off",
},
files: ["**/*.test.ts", "test/**/*.ts"],
ignores: ["**/*.d.ts"]
},
{
...duploLint,
rules: {
...duploLint.rules,
"max-classes-per-file": "off",
"no-useless-assignment": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
},
files: ["**/*.ts"],
ignores: ["**/*.test.ts", "test/**/*.ts", "**/*.d.ts"],
},
{
ignores: ["coverage", "dist"]
}
];