@resolid/config 5.3.24 → 5.3.26

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/README.md CHANGED
@@ -75,7 +75,7 @@ export default defineConfig({
75
75
  由于 Oxlint 配置解析器的限制,目前你必须直接安装所需的 JS 插件
76
76
 
77
77
  ```shell
78
- pnpm add -D eslint-plugin-react-hooks eslint-plugin-react-you-might-not-need-an-effect
78
+ pnpm add -D eslint-plugin-react-you-might-not-need-an-effect
79
79
  ```
80
80
 
81
81
  ```js
package/oxlint/react.js CHANGED
@@ -2,10 +2,6 @@ import { defineConfig } from "oxlint";
2
2
 
3
3
  export default defineConfig({
4
4
  jsPlugins: [
5
- {
6
- name: "react-hooks-js",
7
- specifier: "eslint-plugin-react-hooks",
8
- },
9
5
  {
10
6
  name: "react-you-might-not-need-an-effect-js",
11
7
  specifier: "eslint-plugin-react-you-might-not-need-an-effect",
@@ -39,17 +35,17 @@ export default defineConfig({
39
35
  {
40
36
  allowConstantExport: true,
41
37
  allowExportNames: [
38
+ "clientAction",
39
+ "clientLoader",
40
+ "clientMiddleware",
41
+ "handle",
42
42
  "meta",
43
43
  "links",
44
+ "shouldRevalidate",
44
45
  "action",
45
- "handle",
46
- "headers",
47
- "clientAction",
48
46
  "loader",
49
- "clientLoader",
47
+ "headers",
50
48
  "middleware",
51
- "clientMiddleware",
52
- "shouldRevalidate",
53
49
  "ErrorBoundary",
54
50
  "HydrateFallback",
55
51
  "Layout",
@@ -60,31 +56,17 @@ export default defineConfig({
60
56
  "react/rules-of-hooks": "error",
61
57
  "react/exhaustive-deps": ["warn", { additionalHooks: "useIsomorphicEffect" }],
62
58
 
63
- // react-hooks-js Recommended
64
- "react-hooks-js/config": "error",
65
- "react-hooks-js/error-boundaries": "error",
66
- "react-hooks-js/gating": "error",
67
- "react-hooks-js/globals": "error",
68
- "react-hooks-js/immutability": "error",
69
- "react-hooks-js/preserve-manual-memoization": "error",
70
- "react-hooks-js/purity": "error",
71
- "react-hooks-js/refs": "error",
72
- "react-hooks-js/set-state-in-effect": "error",
73
- "react-hooks-js/set-state-in-render": "error",
74
- "react-hooks-js/static-components": "error",
75
- "react-hooks-js/unsupported-syntax": "error",
76
- "react-hooks-js/use-memo": "error",
77
- "react-hooks-js/void-use-memo": "error",
78
- "react-hooks-js/incompatible-library": "error",
59
+ "react/react-compiler": "error",
79
60
 
80
61
  // react-you-might-not-need-an-effect-js Recommended
62
+ "react-you-might-not-need-an-effect-js/no-derived-state": "warn",
63
+ "react-you-might-not-need-an-effect-js/no-chain-state-updates": "warn",
64
+ "react-you-might-not-need-an-effect-js/no-event-handler": "warn",
81
65
  "react-you-might-not-need-an-effect-js/no-adjust-state-on-prop-change": "warn",
82
66
  "react-you-might-not-need-an-effect-js/no-reset-all-state-on-prop-change": "warn",
83
- "react-you-might-not-need-an-effect-js/no-event-handler": "warn",
84
67
  "react-you-might-not-need-an-effect-js/no-pass-live-state-to-parent": "warn",
85
68
  "react-you-might-not-need-an-effect-js/no-pass-data-to-parent": "warn",
69
+ "react-you-might-not-need-an-effect-js/no-external-store-subscription": "warn",
86
70
  "react-you-might-not-need-an-effect-js/no-initialize-state": "warn",
87
- "react-you-might-not-need-an-effect-js/no-chain-state-updates": "warn",
88
- "react-you-might-not-need-an-effect-js/no-derived-state": "warn",
89
71
  },
90
72
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolid/config",
3
- "version": "5.3.24",
3
+ "version": "5.3.26",
4
4
  "description": "Oxlint and Typescript config",
5
5
  "keywords": [
6
6
  "oxfmt",
@@ -42,19 +42,17 @@
42
42
  "@changesets/cli": "^2.31.0",
43
43
  "@commitlint/cli": "^21.0.2",
44
44
  "@commitlint/config-conventional": "^21.0.2",
45
- "eslint-plugin-react-hooks": "^7.1.1",
46
- "eslint-plugin-react-you-might-not-need-an-effect": "^1.0.0",
45
+ "eslint-plugin-react-you-might-not-need-an-effect": "^1.0.1",
47
46
  "lefthook": "^2.1.9",
48
- "oxfmt": "^0.54.0",
49
- "oxlint": "^1.69.0",
47
+ "oxfmt": "^0.56.0",
48
+ "oxlint": "^1.71.0",
50
49
  "oxlint-tsgolint": "^0.23.0",
51
50
  "typescript": "^6.0.3"
52
51
  },
53
52
  "peerDependencies": {
54
- "eslint-plugin-react-hooks": "^7.1.1",
55
- "eslint-plugin-react-you-might-not-need-an-effect": "^1.0.0",
56
- "oxfmt": "^0.54.0",
57
- "oxlint": "^1.69.0",
53
+ "eslint-plugin-react-you-might-not-need-an-effect": "^1.0.1",
54
+ "oxfmt": "^0.56.0",
55
+ "oxlint": "^1.71.0",
58
56
  "oxlint-tsgolint": "^0.23.0",
59
57
  "typescript": "^6.0.3"
60
58
  },
@@ -65,9 +63,6 @@
65
63
  "oxlint-tsgolint": {
66
64
  "optional": true
67
65
  },
68
- "eslint-plugin-react-hooks": {
69
- "optional": true
70
- },
71
66
  "eslint-plugin-react-you-might-not-need-an-effect": {
72
67
  "optional": true
73
68
  }