@infernodesign/eslint-config 1.2.4 → 1.3.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/cli.js +1 -1
- package/dist/index.js +45 -45
- package/package.json +2 -1
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1285,46 +1285,6 @@ async function react(options = {}) {
|
|
|
1285
1285
|
},
|
|
1286
1286
|
name: "inferno/react/rules",
|
|
1287
1287
|
rules: {
|
|
1288
|
-
"react/jsx-no-comment-textnodes": "warn",
|
|
1289
|
-
"react/jsx-no-duplicate-props": "warn",
|
|
1290
|
-
"react/jsx-uses-vars": "warn",
|
|
1291
|
-
"react/no-access-state-in-setstate": "error",
|
|
1292
|
-
"react/no-array-index-key": "warn",
|
|
1293
|
-
"react/no-children-count": "warn",
|
|
1294
|
-
"react/no-children-for-each": "warn",
|
|
1295
|
-
"react/no-children-map": "warn",
|
|
1296
|
-
"react/no-children-only": "warn",
|
|
1297
|
-
"react/no-children-to-array": "warn",
|
|
1298
|
-
"react/no-clone-element": "warn",
|
|
1299
|
-
"react/no-component-will-mount": "error",
|
|
1300
|
-
"react/no-component-will-receive-props": "error",
|
|
1301
|
-
"react/no-component-will-update": "error",
|
|
1302
|
-
"react/no-context-provider": "warn",
|
|
1303
|
-
"react/no-create-ref": "error",
|
|
1304
|
-
"react/no-default-props": "error",
|
|
1305
|
-
"react/no-direct-mutation-state": "error",
|
|
1306
|
-
"react/no-duplicate-key": "warn",
|
|
1307
|
-
"react/no-forward-ref": "warn",
|
|
1308
|
-
"react/no-implicit-key": "warn",
|
|
1309
|
-
"react/no-missing-key": "error",
|
|
1310
|
-
"react/no-nested-component-definitions": "error",
|
|
1311
|
-
"react/no-prop-types": "error",
|
|
1312
|
-
"react/no-redundant-should-component-update": "error",
|
|
1313
|
-
"react/no-set-state-in-component-did-mount": "warn",
|
|
1314
|
-
"react/no-set-state-in-component-did-update": "warn",
|
|
1315
|
-
"react/no-set-state-in-component-will-update": "warn",
|
|
1316
|
-
"react/no-string-refs": "error",
|
|
1317
|
-
"react/no-unnecessary-use-prefix": "warn",
|
|
1318
|
-
"react/no-unsafe-component-will-mount": "warn",
|
|
1319
|
-
"react/no-unsafe-component-will-receive-props": "warn",
|
|
1320
|
-
"react/no-unsafe-component-will-update": "warn",
|
|
1321
|
-
"react/no-unstable-context-value": "warn",
|
|
1322
|
-
"react/no-unstable-default-props": "warn",
|
|
1323
|
-
"react/no-unused-class-component-members": "warn",
|
|
1324
|
-
"react/no-unused-state": "warn",
|
|
1325
|
-
"react/no-use-context": "warn",
|
|
1326
|
-
"react/no-useless-forward-ref": "warn",
|
|
1327
|
-
"react/prefer-use-state-lazy-initialization": "warn",
|
|
1328
1288
|
"react-dom/no-dangerously-set-innerhtml": "warn",
|
|
1329
1289
|
"react-dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
1330
1290
|
"react-dom/no-find-dom-node": "error",
|
|
@@ -1340,13 +1300,9 @@ async function react(options = {}) {
|
|
|
1340
1300
|
"react-dom/no-unsafe-target-blank": "warn",
|
|
1341
1301
|
"react-dom/no-use-form-state": "error",
|
|
1342
1302
|
"react-dom/no-void-elements-with-children": "error",
|
|
1303
|
+
"react-hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
1343
1304
|
"react-hooks/exhaustive-deps": "warn",
|
|
1344
1305
|
"react-hooks/rules-of-hooks": "error",
|
|
1345
|
-
"react-hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
1346
|
-
"react-web-api/no-leaked-event-listener": "warn",
|
|
1347
|
-
"react-web-api/no-leaked-interval": "warn",
|
|
1348
|
-
"react-web-api/no-leaked-resize-observer": "warn",
|
|
1349
|
-
"react-web-api/no-leaked-timeout": "warn",
|
|
1350
1306
|
"react-refresh/only-export-components": ["warn", {
|
|
1351
1307
|
allowConstantExport: isAllowConstantExport,
|
|
1352
1308
|
allowExportNames: [...isUsingNext ? [
|
|
@@ -1375,6 +1331,50 @@ async function react(options = {}) {
|
|
|
1375
1331
|
"shouldRevalidate"
|
|
1376
1332
|
] : []]
|
|
1377
1333
|
}],
|
|
1334
|
+
"react-web-api/no-leaked-event-listener": "warn",
|
|
1335
|
+
"react-web-api/no-leaked-interval": "warn",
|
|
1336
|
+
"react-web-api/no-leaked-resize-observer": "warn",
|
|
1337
|
+
"react-web-api/no-leaked-timeout": "warn",
|
|
1338
|
+
"react/jsx-no-comment-textnodes": "warn",
|
|
1339
|
+
"react/jsx-no-duplicate-props": "warn",
|
|
1340
|
+
"react/jsx-uses-vars": "warn",
|
|
1341
|
+
"react/no-access-state-in-setstate": "error",
|
|
1342
|
+
"react/no-array-index-key": "warn",
|
|
1343
|
+
"react/no-children-count": "warn",
|
|
1344
|
+
"react/no-children-for-each": "warn",
|
|
1345
|
+
"react/no-children-map": "warn",
|
|
1346
|
+
"react/no-children-only": "warn",
|
|
1347
|
+
"react/no-children-to-array": "warn",
|
|
1348
|
+
"react/no-clone-element": "warn",
|
|
1349
|
+
"react/no-component-will-mount": "error",
|
|
1350
|
+
"react/no-component-will-receive-props": "error",
|
|
1351
|
+
"react/no-component-will-update": "error",
|
|
1352
|
+
"react/no-context-provider": "warn",
|
|
1353
|
+
"react/no-create-ref": "error",
|
|
1354
|
+
"react/no-default-props": "error",
|
|
1355
|
+
"react/no-direct-mutation-state": "error",
|
|
1356
|
+
"react/no-duplicate-key": "warn",
|
|
1357
|
+
"react/no-forward-ref": "warn",
|
|
1358
|
+
"react/no-implicit-key": "warn",
|
|
1359
|
+
"react/no-missing-key": "error",
|
|
1360
|
+
"react/no-nested-component-definitions": "error",
|
|
1361
|
+
"react/no-prop-types": "error",
|
|
1362
|
+
"react/no-redundant-should-component-update": "error",
|
|
1363
|
+
"react/no-set-state-in-component-did-mount": "warn",
|
|
1364
|
+
"react/no-set-state-in-component-did-update": "warn",
|
|
1365
|
+
"react/no-set-state-in-component-will-update": "warn",
|
|
1366
|
+
"react/no-string-refs": "error",
|
|
1367
|
+
"react/no-unnecessary-use-prefix": "warn",
|
|
1368
|
+
"react/no-unsafe-component-will-mount": "warn",
|
|
1369
|
+
"react/no-unsafe-component-will-receive-props": "warn",
|
|
1370
|
+
"react/no-unsafe-component-will-update": "warn",
|
|
1371
|
+
"react/no-unstable-context-value": "warn",
|
|
1372
|
+
"react/no-unstable-default-props": "warn",
|
|
1373
|
+
"react/no-unused-class-component-members": "warn",
|
|
1374
|
+
"react/no-unused-state": "warn",
|
|
1375
|
+
"react/no-use-context": "warn",
|
|
1376
|
+
"react/no-useless-forward-ref": "warn",
|
|
1377
|
+
"react/prefer-use-state-lazy-initialization": "warn",
|
|
1378
1378
|
...overrides
|
|
1379
1379
|
}
|
|
1380
1380
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infernodesign/eslint-config",
|
|
3
3
|
"description": "ESLint config for Inferno Design.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Inferno Design <support@infernodesign.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -187,6 +187,7 @@
|
|
|
187
187
|
"build:inspect": "pnpm run build && pnpx @eslint/config-inspector build",
|
|
188
188
|
"dev": "tsdown --watch",
|
|
189
189
|
"gen": "tsx scripts/typegen.ts && tsx scripts/versiongen.ts",
|
|
190
|
+
"lint": "eslint . --cache --cache-location node_modules/.cache/.eslintcache",
|
|
190
191
|
"test": "vitest",
|
|
191
192
|
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
|
|
192
193
|
}
|