@nighttrax/eslint-config-tsx 12.1.0 → 12.3.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/react.mjs +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nighttrax/eslint-config-tsx",
3
- "version": "12.1.0",
3
+ "version": "12.3.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,9 +24,9 @@
24
24
  "dependencies": {
25
25
  "eslint-plugin-jsx-a11y": "~6.10.2",
26
26
  "eslint-plugin-react": "~7.37.5",
27
- "eslint-plugin-react-hooks": "~6.1.0",
28
- "eslint-plugin-react-you-might-not-need-an-effect": "~0.5.1",
29
- "@nighttrax/eslint-config-ts": "12.0.3"
27
+ "eslint-plugin-react-hooks": "~7.0.0",
28
+ "eslint-plugin-react-you-might-not-need-an-effect": "~0.8.0",
29
+ "@nighttrax/eslint-config-ts": "12.1.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "eslint": "^9.0.0"
package/src/react.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import react from "eslint-plugin-react";
2
2
  import jsxA11y from "eslint-plugin-jsx-a11y";
3
- // eslint-disable-next-line import-x/default
4
3
  import reactHooks from "eslint-plugin-react-hooks";
5
4
  import reactYouMightNotNeedAnEffect from "eslint-plugin-react-you-might-not-need-an-effect";
6
5
  import { EXTENSIONS, nighttraxTS } from "@nighttrax/eslint-config-ts";
@@ -22,7 +21,7 @@ export const nighttraxReact = (
22
21
  [
23
22
  react.configs.flat.recommended,
24
23
  react.configs.flat["jsx-runtime"],
25
- reactHooks.configs["flat/recommended"],
24
+ reactHooks.configs.flat["recommended-latest"],
26
25
  jsxA11y["flatConfigs"].recommended,
27
26
  reactYouMightNotNeedAnEffect.configs.recommended,
28
27
 
@@ -48,6 +47,9 @@ export const nighttraxReact = (
48
47
  "react/jsx-no-useless-fragment": "error",
49
48
  "react/jsx-fragments": "error",
50
49
  "react/jsx-curly-brace-presence": "error",
50
+
51
+ // Produces some false positives, plus it seems to be covered by react-hooks/set-state-in-effect.
52
+ "react-you-might-not-need-an-effect/no-derived-state": "off",
51
53
  },
52
54
  },
53
55