-
Notifications
You must be signed in to change notification settings - Fork 7
/
eslint.config.mjs
47 lines (45 loc) · 1.26 KB
/
eslint.config.mjs
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
import eslintConfigPrettier from "eslint-config-prettier";
import tseslint from 'typescript-eslint';
import eslintPluginImportX from "eslint-plugin-import-x";
import js from "@eslint/js";
import tsParser from '@typescript-eslint/parser'
export default tseslint.config(
js.configs.recommended,
tseslint.configs.strict,
tseslint.configs.stylistic,
eslintPluginImportX.flatConfigs.recommended,
eslintPluginImportX.flatConfigs.typescript,
eslintConfigPrettier,
{
languageOptions: {
parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
}],
},
},
{
ignores: [
"eslint.config.mjs",
"**/node_modules/",
"**/vitest.config.mts",
".yarn/",
".github/command-runner/", // TODO: enable lint for those files
],
}
)