@open-turo/eslint-config-react 18.0.0-pr-410.148.1.1 → 18.0.0-pr-410.149.1.1
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/docs/breaking-changes/v18.md +1 -0
- package/pack/open-turo-eslint-config-react-18.0.0-pr-410.149.1.1.tgz +0 -0
- package/package.json +1 -1
- package/recommended.cjs +14 -0
- package/test/__snapshots__/test.spec.js.snap +2 -2
- package/pack/open-turo-eslint-config-react-18.0.0-pr-410.148.1.1.tgz +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
# Breaking changes in v18
|
|
2
2
|
|
|
3
3
|
- `eslint-plugin-babel-compiler` superseded by `eslint-plugin-react-hooks` v7. Consumers will need to remove direct `react-compiler/react-compiler` references.
|
|
4
|
+
- `react-hooks/exhaustive-deps` upgraded from "warn" to "error" severity, to match `web-schumacher-app`.
|
|
Binary file
|
package/package.json
CHANGED
package/recommended.cjs
CHANGED
|
@@ -37,12 +37,26 @@ module.exports = {
|
|
|
37
37
|
],
|
|
38
38
|
},
|
|
39
39
|
],
|
|
40
|
+
/**
|
|
41
|
+
* We enforce this as error in `web-schumacher-app`, and we should start more strictly enforcing it in other repos, too,
|
|
42
|
+
* to be more thoroughly React Compiler-compliant.
|
|
43
|
+
*
|
|
44
|
+
* {@link https://github.com/turo/web-schumacher-app/pull/10307 Schumacher PR}
|
|
45
|
+
* {@link https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps docs}
|
|
46
|
+
*/
|
|
47
|
+
"react-hooks/exhaustive-deps": "error",
|
|
40
48
|
/**
|
|
41
49
|
* Set as "warn" by default, we want to error on incompatible library APIs for dev visibility (to require // eslint-disable)
|
|
42
50
|
*
|
|
43
51
|
* {@link https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library docs}
|
|
44
52
|
*/
|
|
45
53
|
"react-hooks/incompatible-library": "error",
|
|
54
|
+
/**
|
|
55
|
+
* Not a rule we expect to see, but all other rules are set to "error", and so we set this one to "error" too (to require // eslint-disable)
|
|
56
|
+
*
|
|
57
|
+
* {@link https://react.dev/reference/eslint-plugin-react-hooks/lints/unsupported-syntax docs}
|
|
58
|
+
*/
|
|
59
|
+
"react-hooks/unsupported-syntax": "error",
|
|
46
60
|
// don't force .jsx extension
|
|
47
61
|
"react/jsx-filename-extension": "off",
|
|
48
62
|
// In TS you must use the Fragment syntax instead of the shorthand
|
|
@@ -7997,7 +7997,7 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
|
7997
7997
|
"error",
|
|
7998
7998
|
],
|
|
7999
7999
|
"react-hooks/exhaustive-deps": [
|
|
8000
|
-
"
|
|
8000
|
+
"error",
|
|
8001
8001
|
],
|
|
8002
8002
|
"react-hooks/gating": [
|
|
8003
8003
|
"error",
|
|
@@ -8033,7 +8033,7 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
|
8033
8033
|
"error",
|
|
8034
8034
|
],
|
|
8035
8035
|
"react-hooks/unsupported-syntax": [
|
|
8036
|
-
"
|
|
8036
|
+
"error",
|
|
8037
8037
|
],
|
|
8038
8038
|
"react-hooks/use-memo": [
|
|
8039
8039
|
"error",
|
|
Binary file
|