acaleph-eslint 1.1.8 → 1.2.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/dist/index.cjs +16 -63
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +16 -63
- package/package.json +8 -3
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,63 +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
|
-
// recommended rules from eslint-plugin-react-x https://eslint-react.xyz/docs/rules/overview#core-rules
|
|
13446
|
-
"react/jsx-key-before-spread": "warn",
|
|
13447
|
-
"react/jsx-no-comment-textnodes": "warn",
|
|
13448
|
-
"react/jsx-no-duplicate-props": "warn",
|
|
13449
|
-
"react/jsx-uses-react": "warn",
|
|
13450
|
-
"react/jsx-uses-vars": "warn",
|
|
13451
|
-
"react/no-access-state-in-setstate": "error",
|
|
13452
|
-
"react/no-array-index-key": "warn",
|
|
13453
|
-
"react/no-children-count": "warn",
|
|
13454
|
-
"react/no-children-for-each": "warn",
|
|
13455
|
-
"react/no-children-map": "warn",
|
|
13456
|
-
"react/no-children-only": "warn",
|
|
13457
|
-
"react/no-children-to-array": "warn",
|
|
13458
|
-
"react/no-clone-element": "warn",
|
|
13459
|
-
"react/no-component-will-mount": "error",
|
|
13460
|
-
"react/no-component-will-receive-props": "error",
|
|
13461
|
-
"react/no-component-will-update": "error",
|
|
13462
|
-
"react/no-context-provider": "warn",
|
|
13463
|
-
"react/no-create-ref": "error",
|
|
13464
|
-
"react/no-default-props": "error",
|
|
13465
|
-
"react/no-direct-mutation-state": "error",
|
|
13466
|
-
"react/no-forward-ref": "warn",
|
|
13467
|
-
"react/no-missing-key": "error",
|
|
13468
|
-
"react/no-nested-component-definitions": "error",
|
|
13469
|
-
"react/no-nested-lazy-component-declarations": "error",
|
|
13470
|
-
"react/no-prop-types": "error",
|
|
13471
|
-
"react/no-redundant-should-component-update": "error",
|
|
13472
|
-
"react/no-set-state-in-component-did-mount": "warn",
|
|
13473
|
-
"react/no-set-state-in-component-did-update": "warn",
|
|
13474
|
-
"react/no-set-state-in-component-will-update": "warn",
|
|
13475
|
-
"react/no-string-refs": "error",
|
|
13476
|
-
"react/no-unnecessary-use-prefix": "warn",
|
|
13477
|
-
"react/no-unsafe-component-will-mount": "warn",
|
|
13478
|
-
"react/no-unsafe-component-will-receive-props": "warn",
|
|
13479
|
-
"react/no-unsafe-component-will-update": "warn",
|
|
13480
|
-
"react/no-unused-class-component-members": "warn",
|
|
13481
|
-
"react/no-use-context": "warn",
|
|
13482
|
-
"react/no-useless-forward-ref": "warn",
|
|
13483
|
-
"react/prefer-namespace-import": "error",
|
|
13484
|
-
"react/prefer-use-state-lazy-initialization": "warn",
|
|
13485
13441
|
...overrides
|
|
13486
13442
|
}
|
|
13487
13443
|
},
|
|
@@ -13491,11 +13447,7 @@ async function react(options = {}) {
|
|
|
13491
13447
|
rules: {
|
|
13492
13448
|
// Disables rules that are already handled by TypeScript
|
|
13493
13449
|
"react-dom/no-string-style-prop": "off",
|
|
13494
|
-
"react-dom/no-unknown-property": "off"
|
|
13495
|
-
"react/jsx-no-duplicate-props": "off",
|
|
13496
|
-
"react/jsx-no-undef": "off",
|
|
13497
|
-
"react/jsx-uses-react": "off",
|
|
13498
|
-
"react/jsx-uses-vars": "off"
|
|
13450
|
+
"react-dom/no-unknown-property": "off"
|
|
13499
13451
|
}
|
|
13500
13452
|
},
|
|
13501
13453
|
...isTypeAware ? [{
|
|
@@ -14472,8 +14424,9 @@ var flatConfigProps = [
|
|
|
14472
14424
|
var defaultPluginRenaming = {
|
|
14473
14425
|
"@eslint-react": "react",
|
|
14474
14426
|
"@eslint-react/dom": "react-dom",
|
|
14475
|
-
"@eslint-react/hooks-extra": "react-hooks-extra",
|
|
14476
14427
|
"@eslint-react/naming-convention": "react-naming-convention",
|
|
14428
|
+
"@eslint-react/rsc": "react-rsc",
|
|
14429
|
+
"@eslint-react/web-api": "react-web-api",
|
|
14477
14430
|
"@next/next": "next",
|
|
14478
14431
|
"@stylistic": "style",
|
|
14479
14432
|
"@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,63 +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
|
-
// recommended rules from eslint-plugin-react-x https://eslint-react.xyz/docs/rules/overview#core-rules
|
|
1165
|
-
"react/jsx-key-before-spread": "warn",
|
|
1166
|
-
"react/jsx-no-comment-textnodes": "warn",
|
|
1167
|
-
"react/jsx-no-duplicate-props": "warn",
|
|
1168
|
-
"react/jsx-uses-react": "warn",
|
|
1169
|
-
"react/jsx-uses-vars": "warn",
|
|
1170
|
-
"react/no-access-state-in-setstate": "error",
|
|
1171
|
-
"react/no-array-index-key": "warn",
|
|
1172
|
-
"react/no-children-count": "warn",
|
|
1173
|
-
"react/no-children-for-each": "warn",
|
|
1174
|
-
"react/no-children-map": "warn",
|
|
1175
|
-
"react/no-children-only": "warn",
|
|
1176
|
-
"react/no-children-to-array": "warn",
|
|
1177
|
-
"react/no-clone-element": "warn",
|
|
1178
|
-
"react/no-component-will-mount": "error",
|
|
1179
|
-
"react/no-component-will-receive-props": "error",
|
|
1180
|
-
"react/no-component-will-update": "error",
|
|
1181
|
-
"react/no-context-provider": "warn",
|
|
1182
|
-
"react/no-create-ref": "error",
|
|
1183
|
-
"react/no-default-props": "error",
|
|
1184
|
-
"react/no-direct-mutation-state": "error",
|
|
1185
|
-
"react/no-forward-ref": "warn",
|
|
1186
|
-
"react/no-missing-key": "error",
|
|
1187
|
-
"react/no-nested-component-definitions": "error",
|
|
1188
|
-
"react/no-nested-lazy-component-declarations": "error",
|
|
1189
|
-
"react/no-prop-types": "error",
|
|
1190
|
-
"react/no-redundant-should-component-update": "error",
|
|
1191
|
-
"react/no-set-state-in-component-did-mount": "warn",
|
|
1192
|
-
"react/no-set-state-in-component-did-update": "warn",
|
|
1193
|
-
"react/no-set-state-in-component-will-update": "warn",
|
|
1194
|
-
"react/no-string-refs": "error",
|
|
1195
|
-
"react/no-unnecessary-use-prefix": "warn",
|
|
1196
|
-
"react/no-unsafe-component-will-mount": "warn",
|
|
1197
|
-
"react/no-unsafe-component-will-receive-props": "warn",
|
|
1198
|
-
"react/no-unsafe-component-will-update": "warn",
|
|
1199
|
-
"react/no-unused-class-component-members": "warn",
|
|
1200
|
-
"react/no-use-context": "warn",
|
|
1201
|
-
"react/no-useless-forward-ref": "warn",
|
|
1202
|
-
"react/prefer-namespace-import": "error",
|
|
1203
|
-
"react/prefer-use-state-lazy-initialization": "warn",
|
|
1204
1160
|
...overrides
|
|
1205
1161
|
}
|
|
1206
1162
|
},
|
|
@@ -1210,11 +1166,7 @@ async function react(options = {}) {
|
|
|
1210
1166
|
rules: {
|
|
1211
1167
|
// Disables rules that are already handled by TypeScript
|
|
1212
1168
|
"react-dom/no-string-style-prop": "off",
|
|
1213
|
-
"react-dom/no-unknown-property": "off"
|
|
1214
|
-
"react/jsx-no-duplicate-props": "off",
|
|
1215
|
-
"react/jsx-no-undef": "off",
|
|
1216
|
-
"react/jsx-uses-react": "off",
|
|
1217
|
-
"react/jsx-uses-vars": "off"
|
|
1169
|
+
"react-dom/no-unknown-property": "off"
|
|
1218
1170
|
}
|
|
1219
1171
|
},
|
|
1220
1172
|
...isTypeAware ? [{
|
|
@@ -2191,8 +2143,9 @@ var flatConfigProps = [
|
|
|
2191
2143
|
var defaultPluginRenaming = {
|
|
2192
2144
|
"@eslint-react": "react",
|
|
2193
2145
|
"@eslint-react/dom": "react-dom",
|
|
2194
|
-
"@eslint-react/hooks-extra": "react-hooks-extra",
|
|
2195
2146
|
"@eslint-react/naming-convention": "react-naming-convention",
|
|
2147
|
+
"@eslint-react/rsc": "react-rsc",
|
|
2148
|
+
"@eslint-react/web-api": "react-web-api",
|
|
2196
2149
|
"@next/next": "next",
|
|
2197
2150
|
"@stylistic": "style",
|
|
2198
2151
|
"@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.
|
|
4
|
+
"version": "1.2.0",
|
|
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
|
|
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",
|