@peerigon/configs 7.4.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/eslint/rules/react.js +5 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# [8.0.0](https://github.com/peerigon/configs/compare/v7.4.0...v8.0.0) (2025-10-01)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **eslint:** Add eslint-plugin-react-you-might-not-need-an-effect ([1985951](https://github.com/peerigon/configs/commit/19859517f38b4f6a5b2b39119a1440b63cebcbde))
|
|
6
|
+
|
|
7
|
+
### BREAKING CHANGES
|
|
8
|
+
|
|
9
|
+
- **eslint:** Our React rules got a lot stricter about useEffect, see https://github.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect
|
|
10
|
+
|
|
1
11
|
# [7.4.0](https://github.com/peerigon/configs/compare/v7.3.0...v7.4.0) (2025-09-30)
|
|
2
12
|
|
|
3
13
|
### Bug Fixes
|
|
@@ -4,6 +4,7 @@ import reactPlugin from "eslint-plugin-react";
|
|
|
4
4
|
import reactCompilerPlugin from "eslint-plugin-react-compiler";
|
|
5
5
|
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
6
6
|
import reactRefreshPlugin from "eslint-plugin-react-refresh";
|
|
7
|
+
import reactYouMightNotNeedAnEffect from "eslint-plugin-react-you-might-not-need-an-effect";
|
|
7
8
|
import { globPatterns } from "../lib/glob-patterns.js";
|
|
8
9
|
const files = [globPatterns.jsx, globPatterns.typescriptJsx];
|
|
9
10
|
/** @type {import("eslint").Linter.Config[]} */
|
|
@@ -89,6 +90,10 @@ export const react = [
|
|
|
89
90
|
"react-compiler/react-compiler": "error",
|
|
90
91
|
},
|
|
91
92
|
},
|
|
93
|
+
{
|
|
94
|
+
files,
|
|
95
|
+
...reactYouMightNotNeedAnEffect.configs.recommended,
|
|
96
|
+
},
|
|
92
97
|
{
|
|
93
98
|
files,
|
|
94
99
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peerigon/configs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Configs for ESLint, Prettier, TypeScript & friends",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
89
89
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
90
90
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
91
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.5.5",
|
|
91
92
|
"eslint-plugin-unicorn": "^60.0.0",
|
|
92
93
|
"globals": "^16.3.0",
|
|
93
94
|
"prettier-plugin-css-order": "^2.1.2",
|