acaleph-eslint 1.1.9 → 1.2.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/dist/index.cjs +1 -53
- package/dist/index.js +1 -53
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13384,19 +13384,6 @@ 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",
|
|
13400
13387
|
"react-refresh/only-export-components": [
|
|
13401
13388
|
"error",
|
|
13402
13389
|
{
|
|
@@ -13438,41 +13425,6 @@ async function react(options = {}) {
|
|
|
13438
13425
|
]
|
|
13439
13426
|
}
|
|
13440
13427
|
],
|
|
13441
|
-
// recommended rules from eslint-plugin-react-x https://eslint-react.xyz/docs/rules/overview#core-rules
|
|
13442
|
-
"react/jsx-key-before-spread": "warn",
|
|
13443
|
-
"react/jsx-no-comment-textnodes": "warn",
|
|
13444
|
-
"react/jsx-no-duplicate-props": "warn",
|
|
13445
|
-
"react/jsx-uses-react": "warn",
|
|
13446
|
-
"react/jsx-uses-vars": "warn",
|
|
13447
|
-
"react/no-access-state-in-setstate": "error",
|
|
13448
|
-
"react/no-array-index-key": "warn",
|
|
13449
|
-
"react/no-children-count": "warn",
|
|
13450
|
-
"react/no-children-for-each": "warn",
|
|
13451
|
-
"react/no-children-map": "warn",
|
|
13452
|
-
"react/no-children-only": "warn",
|
|
13453
|
-
"react/no-children-to-array": "warn",
|
|
13454
|
-
"react/no-clone-element": "warn",
|
|
13455
|
-
"react/no-component-will-mount": "error",
|
|
13456
|
-
"react/no-component-will-receive-props": "error",
|
|
13457
|
-
"react/no-component-will-update": "error",
|
|
13458
|
-
"react/no-context-provider": "warn",
|
|
13459
|
-
"react/no-create-ref": "error",
|
|
13460
|
-
"react/no-direct-mutation-state": "error",
|
|
13461
|
-
"react/no-forward-ref": "warn",
|
|
13462
|
-
"react/no-missing-key": "error",
|
|
13463
|
-
"react/no-nested-component-definitions": "error",
|
|
13464
|
-
"react/no-nested-lazy-component-declarations": "error",
|
|
13465
|
-
"react/no-redundant-should-component-update": "error",
|
|
13466
|
-
"react/no-set-state-in-component-did-mount": "warn",
|
|
13467
|
-
"react/no-set-state-in-component-did-update": "warn",
|
|
13468
|
-
"react/no-set-state-in-component-will-update": "warn",
|
|
13469
|
-
"react/no-unnecessary-use-prefix": "warn",
|
|
13470
|
-
"react/no-unsafe-component-will-mount": "warn",
|
|
13471
|
-
"react/no-unsafe-component-will-receive-props": "warn",
|
|
13472
|
-
"react/no-unsafe-component-will-update": "warn",
|
|
13473
|
-
"react/no-unused-class-component-members": "warn",
|
|
13474
|
-
"react/no-use-context": "warn",
|
|
13475
|
-
"react/prefer-namespace-import": "error",
|
|
13476
13428
|
...overrides
|
|
13477
13429
|
}
|
|
13478
13430
|
},
|
|
@@ -13482,11 +13434,7 @@ async function react(options = {}) {
|
|
|
13482
13434
|
rules: {
|
|
13483
13435
|
// Disables rules that are already handled by TypeScript
|
|
13484
13436
|
"react-dom/no-string-style-prop": "off",
|
|
13485
|
-
"react-dom/no-unknown-property": "off"
|
|
13486
|
-
"react/jsx-no-duplicate-props": "off",
|
|
13487
|
-
"react/jsx-no-undef": "off",
|
|
13488
|
-
"react/jsx-uses-react": "off",
|
|
13489
|
-
"react/jsx-uses-vars": "off"
|
|
13437
|
+
"react-dom/no-unknown-property": "off"
|
|
13490
13438
|
}
|
|
13491
13439
|
},
|
|
13492
13440
|
...isTypeAware ? [{
|
package/dist/index.js
CHANGED
|
@@ -1103,19 +1103,6 @@ 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",
|
|
1119
1106
|
"react-refresh/only-export-components": [
|
|
1120
1107
|
"error",
|
|
1121
1108
|
{
|
|
@@ -1157,41 +1144,6 @@ async function react(options = {}) {
|
|
|
1157
1144
|
]
|
|
1158
1145
|
}
|
|
1159
1146
|
],
|
|
1160
|
-
// recommended rules from eslint-plugin-react-x https://eslint-react.xyz/docs/rules/overview#core-rules
|
|
1161
|
-
"react/jsx-key-before-spread": "warn",
|
|
1162
|
-
"react/jsx-no-comment-textnodes": "warn",
|
|
1163
|
-
"react/jsx-no-duplicate-props": "warn",
|
|
1164
|
-
"react/jsx-uses-react": "warn",
|
|
1165
|
-
"react/jsx-uses-vars": "warn",
|
|
1166
|
-
"react/no-access-state-in-setstate": "error",
|
|
1167
|
-
"react/no-array-index-key": "warn",
|
|
1168
|
-
"react/no-children-count": "warn",
|
|
1169
|
-
"react/no-children-for-each": "warn",
|
|
1170
|
-
"react/no-children-map": "warn",
|
|
1171
|
-
"react/no-children-only": "warn",
|
|
1172
|
-
"react/no-children-to-array": "warn",
|
|
1173
|
-
"react/no-clone-element": "warn",
|
|
1174
|
-
"react/no-component-will-mount": "error",
|
|
1175
|
-
"react/no-component-will-receive-props": "error",
|
|
1176
|
-
"react/no-component-will-update": "error",
|
|
1177
|
-
"react/no-context-provider": "warn",
|
|
1178
|
-
"react/no-create-ref": "error",
|
|
1179
|
-
"react/no-direct-mutation-state": "error",
|
|
1180
|
-
"react/no-forward-ref": "warn",
|
|
1181
|
-
"react/no-missing-key": "error",
|
|
1182
|
-
"react/no-nested-component-definitions": "error",
|
|
1183
|
-
"react/no-nested-lazy-component-declarations": "error",
|
|
1184
|
-
"react/no-redundant-should-component-update": "error",
|
|
1185
|
-
"react/no-set-state-in-component-did-mount": "warn",
|
|
1186
|
-
"react/no-set-state-in-component-did-update": "warn",
|
|
1187
|
-
"react/no-set-state-in-component-will-update": "warn",
|
|
1188
|
-
"react/no-unnecessary-use-prefix": "warn",
|
|
1189
|
-
"react/no-unsafe-component-will-mount": "warn",
|
|
1190
|
-
"react/no-unsafe-component-will-receive-props": "warn",
|
|
1191
|
-
"react/no-unsafe-component-will-update": "warn",
|
|
1192
|
-
"react/no-unused-class-component-members": "warn",
|
|
1193
|
-
"react/no-use-context": "warn",
|
|
1194
|
-
"react/prefer-namespace-import": "error",
|
|
1195
1147
|
...overrides
|
|
1196
1148
|
}
|
|
1197
1149
|
},
|
|
@@ -1201,11 +1153,7 @@ async function react(options = {}) {
|
|
|
1201
1153
|
rules: {
|
|
1202
1154
|
// Disables rules that are already handled by TypeScript
|
|
1203
1155
|
"react-dom/no-string-style-prop": "off",
|
|
1204
|
-
"react-dom/no-unknown-property": "off"
|
|
1205
|
-
"react/jsx-no-duplicate-props": "off",
|
|
1206
|
-
"react/jsx-no-undef": "off",
|
|
1207
|
-
"react/jsx-uses-react": "off",
|
|
1208
|
-
"react/jsx-uses-vars": "off"
|
|
1156
|
+
"react-dom/no-unknown-property": "off"
|
|
1209
1157
|
}
|
|
1210
1158
|
},
|
|
1211
1159
|
...isTypeAware ? [{
|