-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
35 lines (34 loc) · 1.06 KB
/
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
import pluginJs from "@eslint/js"
import pluginVue from "eslint-plugin-vue"
import globals from "globals"
import tseslint from "typescript-eslint"
import prettier from "eslint-config-prettier"
/** @type {import('eslint').Linter.Config[]} */
export default [
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs["flat/essential"],
{ files: ["**/*.vue"], languageOptions: { parserOptions: { parser: tseslint.parser } } },
{ ignores: ["**docs/.vitepress/cache/**"] },
{
files: ["src/**/*.ts", "test/**/*.ts"],
rules: {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-console": "warn",
"no-unused-expressions": "warn",
},
},
{
files: ["test/bench.ts"],
rules: {
"@typescript-eslint/ban-ts-comment": "off",
},
},
prettier,
{
ignores: ["**/node_modules/**", "**/dist/**", "**/build/**", "**/coverage/**"],
},
]