File tree 1 file changed +6
-2
lines changed
packages/eslint-config/src
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ import pluginJsxA11y from "eslint-plugin-jsx-a11y";
20
20
// @ts -expect-error no types for this
21
21
import pluginNext from "@next/eslint-plugin-next" ;
22
22
import pluginStorybook from 'eslint-plugin-storybook'
23
+ // @ts -expect-error no types for this
24
+ import pluginImport from 'eslint-plugin-import'
23
25
24
26
// re-export
25
27
export {
@@ -37,9 +39,11 @@ export {
37
39
pluginJsxA11y ,
38
40
pluginNext ,
39
41
pluginStorybook ,
42
+ pluginImport
40
43
} ;
41
44
42
- const flatCompat = new eslintrc . FlatCompat ( ) ;
45
+ // No longer required but keep for a while just in case we are adding new plugins.
46
+ // const flatCompat = new eslintrc.FlatCompat();
43
47
44
48
export const files = ( ) => [
45
49
{
@@ -185,7 +189,7 @@ export const storybook = () => [
185
189
] ;
186
190
187
191
export const imports = ( ) => [
188
- ... compat . fixupConfigRules ( flatCompat . extends ( "plugin:import/ recommended" ) ) ,
192
+ pluginImport . flatConfigs . recommended ,
189
193
{
190
194
rules : {
191
195
"import/no-duplicates" : "error" ,
You can’t perform that action at this time.
0 commit comments