-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
31 lines (30 loc) · 823 Bytes
/
eslint.config.mjs
File metadata and controls
31 lines (30 loc) · 823 Bytes
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
import { defineConfig, globalIgnores } from "eslint/config";
import eslint from "@eslint/js";
import vitest from "@vitest/eslint-plugin";
import tseslint from "typescript-eslint";
export default defineConfig(
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
tseslint.configs.strictTypeChecked,
tseslint.configs.stylisticTypeChecked,
vitest.configs.recommended,
globalIgnores(["**/node_modules/**", "**/dist/**"]),
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ["*.cjs", "*.mjs"],
},
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
"@typescript-eslint": tseslint.plugin,
vitest,
},
rules: {
// DIY
"@typescript-eslint/no-extraneous-class": "off",
},
}
);