acaleph-eslint 1.1.9 → 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 +1 -40
- package/dist/index.js +1 -40
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13438,41 +13438,6 @@ async function react(options = {}) {
|
|
|
13438
13438
|
]
|
|
13439
13439
|
}
|
|
13440
13440
|
],
|
|
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
13441
|
...overrides
|
|
13477
13442
|
}
|
|
13478
13443
|
},
|
|
@@ -13482,11 +13447,7 @@ async function react(options = {}) {
|
|
|
13482
13447
|
rules: {
|
|
13483
13448
|
// Disables rules that are already handled by TypeScript
|
|
13484
13449
|
"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"
|
|
13450
|
+
"react-dom/no-unknown-property": "off"
|
|
13490
13451
|
}
|
|
13491
13452
|
},
|
|
13492
13453
|
...isTypeAware ? [{
|
package/dist/index.js
CHANGED
|
@@ -1157,41 +1157,6 @@ async function react(options = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
}
|
|
1159
1159
|
],
|
|
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
1160
|
...overrides
|
|
1196
1161
|
}
|
|
1197
1162
|
},
|
|
@@ -1201,11 +1166,7 @@ async function react(options = {}) {
|
|
|
1201
1166
|
rules: {
|
|
1202
1167
|
// Disables rules that are already handled by TypeScript
|
|
1203
1168
|
"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"
|
|
1169
|
+
"react-dom/no-unknown-property": "off"
|
|
1209
1170
|
}
|
|
1210
1171
|
},
|
|
1211
1172
|
...isTypeAware ? [{
|