-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy patheslint.config.mjs
43 lines (38 loc) · 1.23 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
// @ts-check
import jsPlugin from "@eslint/js";
import tsParser from "@typescript-eslint/parser";
import vuePlugin from "eslint-plugin-vue";
import tsPlugin from "typescript-eslint";
import vueParser from "vue-eslint-parser";
/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile} */
export default [
{
ignores: ["**/node_modules", "**/dist", "**/coverage", "**/docs", "src/components/ui"]
},
jsPlugin.configs.recommended,
...tsPlugin.configs.recommended,
...vuePlugin.configs["flat/essential"],
{
languageOptions: {
globals: {
BigInt: true,
console: true,
WebAssembly: true,
chrome: true,
process: true
},
parser: vueParser,
ecmaVersion: "latest",
sourceType: "module",
parserOptions: { parser: tsParser }
},
rules: {
"vue/component-api-style": ["warn", ["script-setup", "composition"]],
"vue/multi-word-component-names": "off",
"no-console": "error",
"no-undef": "off", // TypeScript's compiler already enforces this check. https://eslint.org/docs/latest/rules/no-undef#handled_by_typescript
"@typescript-eslint/explicit-module-boundary-types": "off",
"sort-imports": "off"
}
}
];