-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy patheslint.config.js
More file actions
34 lines (33 loc) · 1.15 KB
/
eslint.config.js
File metadata and controls
34 lines (33 loc) · 1.15 KB
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
import { defineScTsConfig } from "@shiftcode/eslint-config-recommended";
export default [
...defineScTsConfig({
languageOptions: { parserOptions: { project: ["./tsconfig.lint.json"] } },
}),
{
files: ["**/*.{ts,mts,cts,js,mjs,cjs}"],
rules: {
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-array-constructor": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/require-await": "off",
"simple-import-sort/exports": "off",
"simple-import-sort/imports": "off",
"@typescript-eslint/switch-exhaustiveness-check": "off",
"@typescript-eslint/member-ordering": "off",
},
},
{
files: ["**/*.{ts,mts,cts,js,mjs,cjs}"],
ignores: [
"src/**/*", // ignore all files inside src/
"!src/**/*.{spec,test}.ts", // un-ignore test files
],
rules: {
"unused-imports/no-unused-vars": "off",
},
},
];