-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
46 lines (43 loc) · 978 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
37
38
39
40
41
42
43
44
45
46
// @ts-check
import globals from "globals";
import tsEslint from "typescript-eslint";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
export default tsEslint.config(
...tsEslint.configs.stylisticTypeChecked,
{
ignores: ["coverage/**/*", "dist/**/*", "node_modules/**/*"],
languageOptions: {
globals: {
...globals.node,
...globals.es2021,
},
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: ["**/*.ts"],
rules: {
"no-console": 0,
"no-undef": 0,
"no-unused-vars": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/no-non-null-assertion": 1,
"@typescript-eslint/no-unused-vars": [
1,
{
ignoreRestSiblings: true,
argsIgnorePattern: "^_",
},
],
},
},
{
files: ["**/*.js"],
...tsEslint.configs.disableTypeChecked,
},
eslintPluginPrettierRecommended,
);