-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
30 lines (29 loc) · 939 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
import pluginJs from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import pluginVue from "eslint-plugin-vue";
import globals from "globals";
import tseslint from "typescript-eslint";
export default [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs["flat/essential"],
eslintPluginPrettierRecommended,
{
files: ["**/*.{js,mjs,cjs,ts,vue}"],
ignores: ["dist", "node_modules", ".vscode", ".husky", "public"],
languageOptions: { globals: { ...globals.browser, ...globals.node } },
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-console": "error",
"no-debugger": "error",
},
},
{
files: ["**/*.vue"],
languageOptions: { parserOptions: { parser: tseslint.parser } },
rules: {
"vue/multi-word-component-names": 0,
},
},
];