Skip to content

Commit 864ab0f

Browse files
installed eslint-plugin-import
Signed-off-by: Rajesh-Nagarajan-11 <rajeshnagarajan36@gmail.com>
1 parent 48dc923 commit 864ab0f

3 files changed

Lines changed: 237 additions & 59 deletions

File tree

eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const react = require("eslint-plugin-react");
55
const reactHooks = require("eslint-plugin-react-hooks");
66
const typescript = require("@typescript-eslint/eslint-plugin");
77
const storybook = require("eslint-plugin-storybook");
8+
const importPlugin = require("eslint-plugin-import");
89
const globals = require("globals");
910

1011
const 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

Comments
 (0)