acaleph-eslint 1.1.8 → 1.1.9

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/dist/index.cjs CHANGED
@@ -13384,6 +13384,19 @@ async function react(options = {}) {
13384
13384
  name: "acaleph/react/rules",
13385
13385
  rules: {
13386
13386
  ...pluginReact.configs.recommended.rules,
13387
+ // recommended rules from eslint-plugin-react-dom https://eslint-react.xyz/docs/rules/overview#dom-rules
13388
+ "react-dom/no-dangerously-set-innerhtml": "warn",
13389
+ "react-dom/no-dangerously-set-innerhtml-with-children": "error",
13390
+ "react-dom/no-find-dom-node": "error",
13391
+ "react-dom/no-flush-sync": "error",
13392
+ "react-dom/no-hydrate": "error",
13393
+ "react-dom/no-namespace": "error",
13394
+ "react-dom/no-render": "error",
13395
+ "react-dom/no-render-return-value": "error",
13396
+ "react-dom/no-script-url": "warn",
13397
+ "react-dom/no-unsafe-iframe-sandbox": "warn",
13398
+ "react-dom/no-use-form-state": "error",
13399
+ "react-dom/no-void-elements-with-children": "error",
13387
13400
  "react-refresh/only-export-components": [
13388
13401
  "error",
13389
13402
  {
@@ -13425,23 +13438,6 @@ async function react(options = {}) {
13425
13438
  ]
13426
13439
  }
13427
13440
  ],
13428
- // recommended rules from eslint-plugin-react-dom https://eslint-react.xyz/docs/rules/overview#dom-rules
13429
- "react-dom/no-dangerously-set-innerhtml": "warn",
13430
- "react-dom/no-dangerously-set-innerhtml-with-children": "error",
13431
- "react-dom/no-find-dom-node": "error",
13432
- "react-dom/no-flush-sync": "error",
13433
- "react-dom/no-hydrate": "error",
13434
- "react-dom/no-namespace": "error",
13435
- "react-dom/no-render": "error",
13436
- "react-dom/no-render-return-value": "error",
13437
- "react-dom/no-script-url": "warn",
13438
- "react-dom/no-unsafe-iframe-sandbox": "warn",
13439
- "react-dom/no-use-form-state": "error",
13440
- "react-dom/no-void-elements-with-children": "error",
13441
- // recommended rules from eslint-plugin-react-naming-convention https://eslint-react.xyz/docs/rules/overview#naming-convention-rules
13442
- "react-naming-convention/context-name": "warn",
13443
- "react-naming-convention/ref-name": "warn",
13444
- "react-naming-convention/use-state": "warn",
13445
13441
  // recommended rules from eslint-plugin-react-x https://eslint-react.xyz/docs/rules/overview#core-rules
13446
13442
  "react/jsx-key-before-spread": "warn",
13447
13443
  "react/jsx-no-comment-textnodes": "warn",
@@ -13461,27 +13457,22 @@ async function react(options = {}) {
13461
13457
  "react/no-component-will-update": "error",
13462
13458
  "react/no-context-provider": "warn",
13463
13459
  "react/no-create-ref": "error",
13464
- "react/no-default-props": "error",
13465
13460
  "react/no-direct-mutation-state": "error",
13466
13461
  "react/no-forward-ref": "warn",
13467
13462
  "react/no-missing-key": "error",
13468
13463
  "react/no-nested-component-definitions": "error",
13469
13464
  "react/no-nested-lazy-component-declarations": "error",
13470
- "react/no-prop-types": "error",
13471
13465
  "react/no-redundant-should-component-update": "error",
13472
13466
  "react/no-set-state-in-component-did-mount": "warn",
13473
13467
  "react/no-set-state-in-component-did-update": "warn",
13474
13468
  "react/no-set-state-in-component-will-update": "warn",
13475
- "react/no-string-refs": "error",
13476
13469
  "react/no-unnecessary-use-prefix": "warn",
13477
13470
  "react/no-unsafe-component-will-mount": "warn",
13478
13471
  "react/no-unsafe-component-will-receive-props": "warn",
13479
13472
  "react/no-unsafe-component-will-update": "warn",
13480
13473
  "react/no-unused-class-component-members": "warn",
13481
13474
  "react/no-use-context": "warn",
13482
- "react/no-useless-forward-ref": "warn",
13483
13475
  "react/prefer-namespace-import": "error",
13484
- "react/prefer-use-state-lazy-initialization": "warn",
13485
13476
  ...overrides
13486
13477
  }
13487
13478
  },
@@ -14472,8 +14463,9 @@ var flatConfigProps = [
14472
14463
  var defaultPluginRenaming = {
14473
14464
  "@eslint-react": "react",
14474
14465
  "@eslint-react/dom": "react-dom",
14475
- "@eslint-react/hooks-extra": "react-hooks-extra",
14476
14466
  "@eslint-react/naming-convention": "react-naming-convention",
14467
+ "@eslint-react/rsc": "react-rsc",
14468
+ "@eslint-react/web-api": "react-web-api",
14477
14469
  "@next/next": "next",
14478
14470
  "@stylistic": "style",
14479
14471
  "@typescript-eslint": "ts",
package/dist/index.d.cts CHANGED
@@ -12047,8 +12047,9 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
12047
12047
  declare const defaultPluginRenaming: {
12048
12048
  '@eslint-react': string;
12049
12049
  '@eslint-react/dom': string;
12050
- '@eslint-react/hooks-extra': string;
12051
12050
  '@eslint-react/naming-convention': string;
12051
+ '@eslint-react/rsc': string;
12052
+ '@eslint-react/web-api': string;
12052
12053
  '@next/next': string;
12053
12054
  '@stylistic': string;
12054
12055
  '@typescript-eslint': string;
package/dist/index.d.ts CHANGED
@@ -12047,8 +12047,9 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
12047
12047
  declare const defaultPluginRenaming: {
12048
12048
  '@eslint-react': string;
12049
12049
  '@eslint-react/dom': string;
12050
- '@eslint-react/hooks-extra': string;
12051
12050
  '@eslint-react/naming-convention': string;
12051
+ '@eslint-react/rsc': string;
12052
+ '@eslint-react/web-api': string;
12052
12053
  '@next/next': string;
12053
12054
  '@stylistic': string;
12054
12055
  '@typescript-eslint': string;
package/dist/index.js CHANGED
@@ -1103,6 +1103,19 @@ async function react(options = {}) {
1103
1103
  name: "acaleph/react/rules",
1104
1104
  rules: {
1105
1105
  ...pluginReact.configs.recommended.rules,
1106
+ // recommended rules from eslint-plugin-react-dom https://eslint-react.xyz/docs/rules/overview#dom-rules
1107
+ "react-dom/no-dangerously-set-innerhtml": "warn",
1108
+ "react-dom/no-dangerously-set-innerhtml-with-children": "error",
1109
+ "react-dom/no-find-dom-node": "error",
1110
+ "react-dom/no-flush-sync": "error",
1111
+ "react-dom/no-hydrate": "error",
1112
+ "react-dom/no-namespace": "error",
1113
+ "react-dom/no-render": "error",
1114
+ "react-dom/no-render-return-value": "error",
1115
+ "react-dom/no-script-url": "warn",
1116
+ "react-dom/no-unsafe-iframe-sandbox": "warn",
1117
+ "react-dom/no-use-form-state": "error",
1118
+ "react-dom/no-void-elements-with-children": "error",
1106
1119
  "react-refresh/only-export-components": [
1107
1120
  "error",
1108
1121
  {
@@ -1144,23 +1157,6 @@ async function react(options = {}) {
1144
1157
  ]
1145
1158
  }
1146
1159
  ],
1147
- // recommended rules from eslint-plugin-react-dom https://eslint-react.xyz/docs/rules/overview#dom-rules
1148
- "react-dom/no-dangerously-set-innerhtml": "warn",
1149
- "react-dom/no-dangerously-set-innerhtml-with-children": "error",
1150
- "react-dom/no-find-dom-node": "error",
1151
- "react-dom/no-flush-sync": "error",
1152
- "react-dom/no-hydrate": "error",
1153
- "react-dom/no-namespace": "error",
1154
- "react-dom/no-render": "error",
1155
- "react-dom/no-render-return-value": "error",
1156
- "react-dom/no-script-url": "warn",
1157
- "react-dom/no-unsafe-iframe-sandbox": "warn",
1158
- "react-dom/no-use-form-state": "error",
1159
- "react-dom/no-void-elements-with-children": "error",
1160
- // recommended rules from eslint-plugin-react-naming-convention https://eslint-react.xyz/docs/rules/overview#naming-convention-rules
1161
- "react-naming-convention/context-name": "warn",
1162
- "react-naming-convention/ref-name": "warn",
1163
- "react-naming-convention/use-state": "warn",
1164
1160
  // recommended rules from eslint-plugin-react-x https://eslint-react.xyz/docs/rules/overview#core-rules
1165
1161
  "react/jsx-key-before-spread": "warn",
1166
1162
  "react/jsx-no-comment-textnodes": "warn",
@@ -1180,27 +1176,22 @@ async function react(options = {}) {
1180
1176
  "react/no-component-will-update": "error",
1181
1177
  "react/no-context-provider": "warn",
1182
1178
  "react/no-create-ref": "error",
1183
- "react/no-default-props": "error",
1184
1179
  "react/no-direct-mutation-state": "error",
1185
1180
  "react/no-forward-ref": "warn",
1186
1181
  "react/no-missing-key": "error",
1187
1182
  "react/no-nested-component-definitions": "error",
1188
1183
  "react/no-nested-lazy-component-declarations": "error",
1189
- "react/no-prop-types": "error",
1190
1184
  "react/no-redundant-should-component-update": "error",
1191
1185
  "react/no-set-state-in-component-did-mount": "warn",
1192
1186
  "react/no-set-state-in-component-did-update": "warn",
1193
1187
  "react/no-set-state-in-component-will-update": "warn",
1194
- "react/no-string-refs": "error",
1195
1188
  "react/no-unnecessary-use-prefix": "warn",
1196
1189
  "react/no-unsafe-component-will-mount": "warn",
1197
1190
  "react/no-unsafe-component-will-receive-props": "warn",
1198
1191
  "react/no-unsafe-component-will-update": "warn",
1199
1192
  "react/no-unused-class-component-members": "warn",
1200
1193
  "react/no-use-context": "warn",
1201
- "react/no-useless-forward-ref": "warn",
1202
1194
  "react/prefer-namespace-import": "error",
1203
- "react/prefer-use-state-lazy-initialization": "warn",
1204
1195
  ...overrides
1205
1196
  }
1206
1197
  },
@@ -2191,8 +2182,9 @@ var flatConfigProps = [
2191
2182
  var defaultPluginRenaming = {
2192
2183
  "@eslint-react": "react",
2193
2184
  "@eslint-react/dom": "react-dom",
2194
- "@eslint-react/hooks-extra": "react-hooks-extra",
2195
2185
  "@eslint-react/naming-convention": "react-naming-convention",
2186
+ "@eslint-react/rsc": "react-rsc",
2187
+ "@eslint-react/web-api": "react-web-api",
2196
2188
  "@next/next": "next",
2197
2189
  "@stylistic": "style",
2198
2190
  "@typescript-eslint": "ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "acaleph-eslint",
3
3
  "type": "module",
4
- "version": "1.1.8",
4
+ "version": "1.1.9",
5
5
  "packageManager": "pnpm@10.5.2",
6
6
  "description": "",
7
7
  "author": "acaleph",
@@ -34,10 +34,14 @@
34
34
  "eslint-plugin-react-refresh": "^0.5.0",
35
35
  "eslint-plugin-vuejs-accessibility": "^2.4.1"
36
36
  },
37
+ "peerDependenciesMeta": {
38
+ "@eslint-react/eslint-plugin": {
39
+ "optional": true
40
+ }
41
+ },
37
42
  "dependencies": {
38
43
  "@clack/prompts": "^1.1.0",
39
44
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
40
- "@eslint-react/eslint-plugin": "^3.0.0",
41
45
  "@next/eslint-plugin-next": "^16.1.6",
42
46
  "@stylistic/eslint-plugin": "^5.9.0",
43
47
  "@stylistic/eslint-plugin-plus": "^4.4.1",
@@ -47,7 +51,7 @@
47
51
  "@vitest/eslint-plugin": "^1.6.9",
48
52
  "acaleph-install-pkg": "^1.0.3",
49
53
  "eslint-config-flat-gitignore": "^2.2.1",
50
- "eslint-flat-config-utils": "^3.0.1",
54
+ "eslint-flat-config-utils": "^3.1.0",
51
55
  "eslint-merge-processors": "^2.0.0",
52
56
  "eslint-plugin-acaleph": "^1.0.1",
53
57
  "eslint-plugin-command": "^3.5.2",
@@ -75,6 +79,7 @@
75
79
  "yaml-eslint-parser": "^2.0.0"
76
80
  },
77
81
  "devDependencies": {
82
+ "@eslint-react/eslint-plugin": "^3.0.0",
78
83
  "@stylistic/eslint-plugin-migrate": "^2.13.0",
79
84
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
80
85
  "@types/node": "^22.10.3",