-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy patheslint.config.ts
41 lines (40 loc) · 1.05 KB
/
eslint.config.ts
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
import js from "@eslint/js";
import tsParser from "@typescript-eslint/parser";
import tsPlugin from "@typescript-eslint/eslint-plugin";
export default [
js.configs.recommended,
{
files: ["sources/**/*.ts"],
ignores: ["sources/output/**/*"],
languageOptions: {
parser: tsParser,
parserOptions: {
project: "./tsconfig.json"
},
globals: {
console: true,
__dirname: true,
jest: true,
node: true,
describe: true,
it: true,
expect: true,
beforeEach: true,
afterEach: true,
beforeAll: true,
afterAll: true
}
},
plugins: {
"@typescript-eslint": tsPlugin
},
rules: {
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-return": "error"
}
}
];