-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
55 lines (52 loc) · 1.42 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
///////////////////////////////////////////////////////////////////////////////
// How to migrate this to new eslint config? //
///////////////////////////////////////////////////////////////////////////////
// {
// files: [
// "**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}",
// "cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}",
// ],
// extends: ["plugin:cypress/recommended"],
// },
//
// FIXME: fix this error
// /Users/haishengwu/freizl/duyijing/src/App.vue
// 2:10 error 'RouterLink' is defined but never used @typescript-eslint/no-unused-vars
// 2:22 error 'RouterView' is defined but never used @typescript-eslint/no-unused-vars
export default [
{
ignores: [
".gitignore",
"dist/*",
".vscode/*",
"eslint.config.js",
".log/*",
"public/*",
],
},
{
files: ["**/*.{js,ts,vue}"],
},
{
languageOptions: {
globals: globals.browser,
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs["flat/essential"],
// ...pluginVue.configs["flat/strongly-recommended"],
// ...pluginVue.configs["flat/recommended"],
{
files: ["**/*.vue"],
languageOptions: {
parserOptions: {
parser: tseslint.parser,
},
},
},
];