1+ require ( '@rushstack/eslint-patch/modern-module-resolution' )
2+
13module . exports = {
24 root : true ,
35 globals : {
46 defineEmits : 'readonly' ,
57 defineProps : 'readonly' ,
68 } ,
79 env : {
10+ 'vue/setup-compiler-macros' : true ,
811 node : true ,
912 } ,
10- extends : [ 'plugin:vue/vue3-recommended' , '@vue/standard' , 'plugin:storybook/recommended' ] ,
13+ extends : [
14+ 'plugin:vue/vue3-recommended' ,
15+ '@vue/eslint-config-typescript/recommended' ,
16+ '@vue/standard' ,
17+ 'plugin:storybook/recommended' ,
18+ ] ,
19+ parser : 'vue-eslint-parser' ,
1120 parserOptions : {
12- parser : '@babel/eslint-parser' ,
21+ ecmaVersion : 2020 ,
22+ parser : '@typescript-eslint/parser' ,
1323 } ,
24+ plugins : [
25+ 'vue' ,
26+ 'html' ,
27+ ] ,
1428 rules : {
1529 'no-console' : process . env . NODE_ENV === 'production' ? 'warn' : 'off' ,
1630 'no-debugger' : process . env . NODE_ENV === 'production' ? 'warn' : 'off' ,
1731 'comma-dangle' : [ 2 , 'always-multiline' ] ,
1832 'no-irregular-whitespace' : 1 ,
33+ '@typescript-eslint/ban-ts-comment' : [
34+ 'error' ,
35+ { 'ts-ignore' : 'allow-with-description' } ,
36+ ] ,
1937 } ,
2038 overrides : [
2139 {
@@ -34,7 +52,12 @@ module.exports = {
3452 } ,
3553 } ,
3654 {
37- files : [ '**/src/**/*.e2e.{j,t}s?(x)' ] ,
55+ files : [
56+ 'cypress/support/*.{js,ts,jsx,tsx}' ,
57+ 'cypress/integration/*.{spec,e2e}.{js,ts,jsx,tsx}' ,
58+ 'src/**/*.ct.{js,ts,jsx,tsx}' ,
59+ '**/src/**/*.e2e.{j,t}s?(x)' ,
60+ ] ,
3861 env : {
3962 'cypress/globals' : true ,
4063 } ,
0 commit comments