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
+ import { importX } from 'eslint-plugin-import-x '
5
5
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
6
6
import storybook from 'eslint-plugin-storybook'
7
7
import unusedImports from 'eslint-plugin-unused-imports'
@@ -81,12 +81,15 @@ export default defineConfig([
81
81
}
82
82
} ,
83
83
pluginJs . configs . recommended ,
84
+ // eslint-disable-next-line import-x/no-named-as-default-member
84
85
tseslint . configs . recommended ,
85
86
pluginVue . configs [ 'flat/recommended' ] ,
86
87
eslintPluginPrettierRecommended ,
87
88
storybook . configs [ 'flat/recommended' ] ,
88
- importPlugin . flatConfigs . recommended ,
89
- importPlugin . flatConfigs . typescript ,
89
+ // @ts -expect-error Bad types in the plugin
90
+ importX . flatConfigs . recommended ,
91
+ // @ts -expect-error Bad types in the plugin
92
+ importX . flatConfigs . typescript ,
90
93
{
91
94
plugins : {
92
95
'unused-imports' : unusedImports ,
@@ -106,9 +109,9 @@ export default defineConfig([
106
109
allowInterfaces : 'always'
107
110
}
108
111
] ,
109
- 'import/consistent-type-specifier-style' : [ 'error' , 'prefer-top-level' ] ,
110
- 'import/no-useless-path-segments' : 'error' ,
111
- 'import/no-relative-packages' : 'error' ,
112
+ 'import-x /consistent-type-specifier-style' : [ 'error' , 'prefer-top-level' ] ,
113
+ 'import-x /no-useless-path-segments' : 'error' ,
114
+ 'import-x /no-relative-packages' : 'error' ,
112
115
'unused-imports/no-unused-imports' : 'error' ,
113
116
'no-console' : [ 'error' , { allow : [ 'warn' , 'error' ] } ] ,
114
117
'vue/no-v-html' : 'off' ,
0 commit comments