Skip to content

Commit 65c4c49

Browse files
committed
chore: add eslint effect plugin
1 parent 9bb7d7e commit 65c4c49

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import importPlugin from "eslint-plugin-import";
77
import storybookPlugin from "eslint-plugin-storybook";
88
import vitest from "eslint-plugin-vitest";
99
import reactRefresh from "eslint-plugin-react-refresh";
10+
import reactYouMightNotNeedAnEffect from "eslint-plugin-react-you-might-not-need-an-effect";
1011

1112
// used by import/no-restricted-paths
1213
const featureSlices = ["carts", "marketing", "products"];
@@ -34,6 +35,7 @@ export default config(
3435
reactPlugin.configs.flat.recommended,
3536
reactPlugin.configs.flat["jsx-runtime"],
3637
prettierPluginRecommended,
38+
reactYouMightNotNeedAnEffect.configs.recommended,
3739
...storybookPlugin.configs["flat/recommended"],
3840

3941
{

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"eslint-plugin-react": "7.37.5",
6363
"eslint-plugin-react-hooks": "5.2.0",
6464
"eslint-plugin-react-refresh": "0.4.19",
65+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.5.4",
6566
"eslint-plugin-storybook": "9.0.18",
6667
"eslint-plugin-vitest": "0.5.4",
6768
"husky": "8.0.3",

pnpm-lock.yaml

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)