@wistia/eslint-config 2.4.7 → 2.5.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/.github/CODEOWNERS +3 -0
- package/.yarn/releases/yarn-4.13.0.cjs +940 -0
- package/.yarnrc.yml +3 -3
- package/CHANGELOG.md +14 -0
- package/README.md +7 -0
- package/package.json +3 -3
- package/src/rules/base.mjs +6 -3
- package/src/rules/react.mjs +142 -58
- package/src/rules/typescript.mjs +2 -1
- package/test/__snapshots__/javascript.mjs.snap +3 -3
- package/test/__snapshots__/react.mjs.snap +43 -55
- package/test/__snapshots__/typescript.mjs.snap +4 -4
- package/.yarn/releases/yarn-4.12.0.cjs +0 -942
|
@@ -1188,69 +1188,62 @@
|
|
|
1188
1188
|
},
|
|
1189
1189
|
"plugins": [
|
|
1190
1190
|
"@",
|
|
1191
|
-
"@eslint-react
|
|
1192
|
-
"@eslint-react/rsc:eslint-plugin-react-rsc@3.0.0",
|
|
1193
|
-
"@eslint-react/dom:eslint-plugin-react-dom@3.0.0",
|
|
1194
|
-
"@eslint-react/naming-convention:eslint-plugin-react-naming-convention@3.0.0",
|
|
1195
|
-
"@eslint-react/web-api:eslint-plugin-react-web-api@3.0.0",
|
|
1191
|
+
"@eslint-react:@eslint-react/eslint-plugin@4.2.3",
|
|
1196
1192
|
"jsx-a11y:eslint-plugin-jsx-a11y@6.10.2",
|
|
1197
1193
|
],
|
|
1198
1194
|
"rules": {
|
|
1199
1195
|
"@eslint-react/component-hook-factories": [
|
|
1200
1196
|
2,
|
|
1201
1197
|
],
|
|
1202
|
-
"@eslint-react/dom
|
|
1198
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml": [
|
|
1203
1199
|
2,
|
|
1204
1200
|
],
|
|
1205
|
-
"@eslint-react/dom
|
|
1201
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml-with-children": [
|
|
1206
1202
|
2,
|
|
1207
1203
|
],
|
|
1208
|
-
"@eslint-react/dom
|
|
1204
|
+
"@eslint-react/dom-no-find-dom-node": [
|
|
1209
1205
|
2,
|
|
1210
1206
|
],
|
|
1211
|
-
"@eslint-react/dom
|
|
1207
|
+
"@eslint-react/dom-no-flush-sync": [
|
|
1212
1208
|
2,
|
|
1213
1209
|
],
|
|
1214
|
-
"@eslint-react/dom
|
|
1210
|
+
"@eslint-react/dom-no-hydrate": [
|
|
1215
1211
|
2,
|
|
1216
1212
|
],
|
|
1217
|
-
"@eslint-react/dom
|
|
1213
|
+
"@eslint-react/dom-no-missing-button-type": [
|
|
1218
1214
|
2,
|
|
1219
1215
|
],
|
|
1220
|
-
"@eslint-react/dom
|
|
1216
|
+
"@eslint-react/dom-no-missing-iframe-sandbox": [
|
|
1221
1217
|
2,
|
|
1222
1218
|
],
|
|
1223
|
-
"@eslint-react/dom
|
|
1219
|
+
"@eslint-react/dom-no-render": [
|
|
1224
1220
|
2,
|
|
1225
1221
|
],
|
|
1226
|
-
"@eslint-react/dom
|
|
1222
|
+
"@eslint-react/dom-no-render-return-value": [
|
|
1227
1223
|
2,
|
|
1228
1224
|
],
|
|
1229
|
-
"@eslint-react/dom
|
|
1225
|
+
"@eslint-react/dom-no-script-url": [
|
|
1230
1226
|
2,
|
|
1231
1227
|
],
|
|
1232
|
-
"@eslint-react/dom
|
|
1228
|
+
"@eslint-react/dom-no-string-style-prop": [
|
|
1233
1229
|
2,
|
|
1234
1230
|
],
|
|
1235
|
-
"@eslint-react/dom
|
|
1231
|
+
"@eslint-react/dom-no-unknown-property": [
|
|
1236
1232
|
2,
|
|
1237
1233
|
],
|
|
1238
|
-
"@eslint-react/dom
|
|
1234
|
+
"@eslint-react/dom-no-unsafe-iframe-sandbox": [
|
|
1239
1235
|
2,
|
|
1240
1236
|
],
|
|
1241
|
-
"@eslint-react/dom
|
|
1237
|
+
"@eslint-react/dom-no-unsafe-target-blank": [
|
|
1242
1238
|
2,
|
|
1243
1239
|
],
|
|
1244
|
-
"@eslint-react/dom
|
|
1240
|
+
"@eslint-react/dom-no-use-form-state": [
|
|
1245
1241
|
2,
|
|
1246
1242
|
],
|
|
1247
|
-
"@eslint-react/dom
|
|
1243
|
+
"@eslint-react/dom-no-void-elements-with-children": [
|
|
1248
1244
|
2,
|
|
1249
1245
|
],
|
|
1250
|
-
"@eslint-react/dom
|
|
1251
|
-
2,
|
|
1252
|
-
],
|
|
1253
|
-
"@eslint-react/dom/prefer-namespace-import": [
|
|
1246
|
+
"@eslint-react/dom-prefer-namespace-import": [
|
|
1254
1247
|
0,
|
|
1255
1248
|
],
|
|
1256
1249
|
"@eslint-react/error-boundaries": [
|
|
@@ -1262,30 +1255,41 @@
|
|
|
1262
1255
|
"@eslint-react/immutability": [
|
|
1263
1256
|
2,
|
|
1264
1257
|
],
|
|
1265
|
-
"@eslint-react/jsx-
|
|
1258
|
+
"@eslint-react/jsx-no-children-prop": [
|
|
1266
1259
|
2,
|
|
1267
1260
|
],
|
|
1268
|
-
"@eslint-react/jsx-
|
|
1261
|
+
"@eslint-react/jsx-no-children-prop-with-children": [
|
|
1269
1262
|
2,
|
|
1270
1263
|
],
|
|
1271
1264
|
"@eslint-react/jsx-no-comment-textnodes": [
|
|
1272
1265
|
2,
|
|
1273
1266
|
],
|
|
1274
|
-
"@eslint-react/jsx-
|
|
1267
|
+
"@eslint-react/jsx-no-key-after-spread": [
|
|
1268
|
+
2,
|
|
1269
|
+
],
|
|
1270
|
+
"@eslint-react/jsx-no-leaked-dollar": [
|
|
1271
|
+
2,
|
|
1272
|
+
],
|
|
1273
|
+
"@eslint-react/jsx-no-leaked-semicolon": [
|
|
1275
1274
|
2,
|
|
1276
|
-
-1,
|
|
1277
1275
|
],
|
|
1278
|
-
"@eslint-react/jsx-
|
|
1276
|
+
"@eslint-react/jsx-no-namespace": [
|
|
1279
1277
|
2,
|
|
1280
|
-
1,
|
|
1281
1278
|
],
|
|
1282
|
-
"@eslint-react/
|
|
1279
|
+
"@eslint-react/jsx-no-useless-fragment": [
|
|
1280
|
+
2,
|
|
1281
|
+
{
|
|
1282
|
+
"allowEmptyFragment": false,
|
|
1283
|
+
"allowExpressions": true,
|
|
1284
|
+
},
|
|
1285
|
+
],
|
|
1286
|
+
"@eslint-react/naming-convention-context-name": [
|
|
1283
1287
|
2,
|
|
1284
1288
|
],
|
|
1285
|
-
"@eslint-react/naming-convention
|
|
1289
|
+
"@eslint-react/naming-convention-id-name": [
|
|
1286
1290
|
2,
|
|
1287
1291
|
],
|
|
1288
|
-
"@eslint-react/naming-convention
|
|
1292
|
+
"@eslint-react/naming-convention-ref-name": [
|
|
1289
1293
|
2,
|
|
1290
1294
|
],
|
|
1291
1295
|
"@eslint-react/no-access-state-in-setstate": [
|
|
@@ -1306,9 +1310,6 @@
|
|
|
1306
1310
|
"@eslint-react/no-children-only": [
|
|
1307
1311
|
2,
|
|
1308
1312
|
],
|
|
1309
|
-
"@eslint-react/no-children-prop": [
|
|
1310
|
-
2,
|
|
1311
|
-
],
|
|
1312
1313
|
"@eslint-react/no-children-to-array": [
|
|
1313
1314
|
2,
|
|
1314
1315
|
],
|
|
@@ -1420,13 +1421,6 @@
|
|
|
1420
1421
|
"@eslint-react/no-use-context": [
|
|
1421
1422
|
2,
|
|
1422
1423
|
],
|
|
1423
|
-
"@eslint-react/no-useless-fragment": [
|
|
1424
|
-
2,
|
|
1425
|
-
{
|
|
1426
|
-
"allowEmptyFragment": false,
|
|
1427
|
-
"allowExpressions": true,
|
|
1428
|
-
},
|
|
1429
|
-
],
|
|
1430
1424
|
"@eslint-react/prefer-destructuring-assignment": [
|
|
1431
1425
|
0,
|
|
1432
1426
|
],
|
|
@@ -1439,7 +1433,7 @@
|
|
|
1439
1433
|
"@eslint-react/refs": [
|
|
1440
1434
|
2,
|
|
1441
1435
|
],
|
|
1442
|
-
"@eslint-react/rsc
|
|
1436
|
+
"@eslint-react/rsc-function-definition": [
|
|
1443
1437
|
2,
|
|
1444
1438
|
],
|
|
1445
1439
|
"@eslint-react/rules-of-hooks": [
|
|
@@ -1451,12 +1445,6 @@
|
|
|
1451
1445
|
"@eslint-react/set-state-in-render": [
|
|
1452
1446
|
2,
|
|
1453
1447
|
],
|
|
1454
|
-
"@eslint-react/unstable-rules-of-props": [
|
|
1455
|
-
2,
|
|
1456
|
-
],
|
|
1457
|
-
"@eslint-react/unstable-rules-of-state": [
|
|
1458
|
-
2,
|
|
1459
|
-
],
|
|
1460
1448
|
"@eslint-react/unsupported-syntax": [
|
|
1461
1449
|
2,
|
|
1462
1450
|
],
|
|
@@ -1466,16 +1454,16 @@
|
|
|
1466
1454
|
"@eslint-react/use-state": [
|
|
1467
1455
|
2,
|
|
1468
1456
|
],
|
|
1469
|
-
"@eslint-react/web-api
|
|
1457
|
+
"@eslint-react/web-api-no-leaked-event-listener": [
|
|
1470
1458
|
2,
|
|
1471
1459
|
],
|
|
1472
|
-
"@eslint-react/web-api
|
|
1460
|
+
"@eslint-react/web-api-no-leaked-interval": [
|
|
1473
1461
|
2,
|
|
1474
1462
|
],
|
|
1475
|
-
"@eslint-react/web-api
|
|
1463
|
+
"@eslint-react/web-api-no-leaked-resize-observer": [
|
|
1476
1464
|
2,
|
|
1477
1465
|
],
|
|
1478
|
-
"@eslint-react/web-api
|
|
1466
|
+
"@eslint-react/web-api-no-leaked-timeout": [
|
|
1479
1467
|
2,
|
|
1480
1468
|
],
|
|
1481
1469
|
"class-methods-use-this": [
|
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
2,
|
|
820
820
|
],
|
|
821
821
|
"@typescript-eslint/no-invalid-this": [
|
|
822
|
-
|
|
822
|
+
0,
|
|
823
823
|
{
|
|
824
824
|
"capIsConstructor": true,
|
|
825
825
|
},
|
|
@@ -1636,7 +1636,7 @@
|
|
|
1636
1636
|
0,
|
|
1637
1637
|
],
|
|
1638
1638
|
"no-dupe-args": [
|
|
1639
|
-
|
|
1639
|
+
0,
|
|
1640
1640
|
],
|
|
1641
1641
|
"no-dupe-class-members": [
|
|
1642
1642
|
0,
|
|
@@ -1855,10 +1855,10 @@
|
|
|
1855
1855
|
2,
|
|
1856
1856
|
],
|
|
1857
1857
|
"no-octal": [
|
|
1858
|
-
|
|
1858
|
+
0,
|
|
1859
1859
|
],
|
|
1860
1860
|
"no-octal-escape": [
|
|
1861
|
-
|
|
1861
|
+
0,
|
|
1862
1862
|
],
|
|
1863
1863
|
"no-param-reassign": [
|
|
1864
1864
|
2,
|