File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
2
2
import pluginJs from '@eslint/js'
3
3
import pluginI18n from '@intlify/eslint-plugin-vue-i18n'
4
+ import importPlugin from 'eslint-plugin-import'
4
5
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
5
6
import storybook from 'eslint-plugin-storybook'
6
7
import unusedImports from 'eslint-plugin-unused-imports'
@@ -47,6 +48,12 @@ export default defineConfig([
47
48
sourceType : 'module' ,
48
49
extraFileExtensions
49
50
}
51
+ } ,
52
+ settings : {
53
+ 'import/resolver' : {
54
+ typescript : true ,
55
+ node : true
56
+ }
50
57
}
51
58
} ,
52
59
{
@@ -65,13 +72,21 @@ export default defineConfig([
65
72
sourceType : 'module' ,
66
73
extraFileExtensions
67
74
}
75
+ } ,
76
+ settings : {
77
+ 'import/resolver' : {
78
+ typescript : true ,
79
+ node : true
80
+ }
68
81
}
69
82
} ,
70
83
pluginJs . configs . recommended ,
71
84
tseslint . configs . recommended ,
72
85
pluginVue . configs [ 'flat/recommended' ] ,
73
86
eslintPluginPrettierRecommended ,
74
87
storybook . configs [ 'flat/recommended' ] ,
88
+ importPlugin . flatConfigs . recommended ,
89
+ importPlugin . flatConfigs . typescript ,
75
90
{
76
91
plugins : {
77
92
'unused-imports' : unusedImports ,
You can’t perform that action at this time.
0 commit comments