Skip to content

Commit 1c15a84

Browse files
committed
feat: remove eslint plugin import compat
1 parent 96e2348 commit 1c15a84

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/eslint-config/src/config.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import pluginJsxA11y from "eslint-plugin-jsx-a11y";
2020
// @ts-expect-error no types for this
2121
import pluginNext from "@next/eslint-plugin-next";
2222
import pluginStorybook from 'eslint-plugin-storybook'
23+
// @ts-expect-error no types for this
24+
import pluginImport from 'eslint-plugin-import'
2325

2426
// re-export
2527
export {
@@ -37,9 +39,11 @@ export {
3739
pluginJsxA11y,
3840
pluginNext,
3941
pluginStorybook,
42+
pluginImport
4043
};
4144

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();
4347

4448
export const files = () => [
4549
{
@@ -185,7 +189,7 @@ export const storybook = () => [
185189
];
186190

187191
export const imports = () => [
188-
...compat.fixupConfigRules(flatCompat.extends("plugin:import/recommended")),
192+
pluginImport.flatConfigs.recommended,
189193
{
190194
rules: {
191195
"import/no-duplicates": "error",

0 commit comments

Comments
 (0)