@@ -5,6 +5,7 @@ const react = require("eslint-plugin-react");
55const reactHooks = require ( "eslint-plugin-react-hooks" ) ;
66const typescript = require ( "@typescript-eslint/eslint-plugin" ) ;
77const storybook = require ( "eslint-plugin-storybook" ) ;
8+ const importPlugin = require ( "eslint-plugin-import" ) ;
89const globals = require ( "globals" ) ;
910
1011const compat = new FlatCompat ( {
@@ -64,6 +65,7 @@ module.exports = [
6465 react,
6566 "react-hooks" : reactHooks ,
6667 "@typescript-eslint" : typescript ,
68+ "import" : importPlugin ,
6769 storybook,
6870 } ,
6971
@@ -79,6 +81,7 @@ module.exports = [
7981
8082 // Storybook recommended rules
8183 ...storybook . configs . recommended . rules ,
84+ "import/first" : "error" ,
8285 } ,
8386
8487 settings : {
@@ -120,6 +123,7 @@ module.exports = [
120123 react,
121124 "react-hooks" : reactHooks ,
122125 "@typescript-eslint" : typescript ,
126+ "import" : importPlugin ,
123127 storybook,
124128 } ,
125129
@@ -135,6 +139,7 @@ module.exports = [
135139
136140 // Storybook recommended rules
137141 ...storybook . configs . recommended . rules ,
142+ "import/first" : "error" ,
138143 } ,
139144
140145 settings : {
0 commit comments