Skip to content

Commit 2689bfb

Browse files
authored
Merge pull request #1241 from Rajesh-Nagarajan-11/eslint-fix
Eliminate ESLint Lint Errors
2 parents 075b8dc + df12d30 commit 2689bfb

File tree

17 files changed

+282
-101
lines changed

17 files changed

+282
-101
lines changed

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)