vize 0.747.0 → 0.748.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.
@@ -1027,6 +1027,1102 @@
1027
1027
  },
1028
1028
  "additionalProperties": false
1029
1029
  },
1030
+ "type/await-thenable": {
1031
+ "type": "object",
1032
+ "properties": {
1033
+ "allowMixedPromiseArrays": {
1034
+ "description": "Whether to allow promise aggregators to receive iterables mixing Promise and non-Promise values, as long as at least one value may be a Promise.",
1035
+ "default": false,
1036
+ "type": "boolean"
1037
+ }
1038
+ },
1039
+ "additionalProperties": false
1040
+ },
1041
+ "type/no-base-to-string": {
1042
+ "type": "object",
1043
+ "properties": {
1044
+ "checkUnknown": {
1045
+ "description": "Whether to also check values of type `unknown`",
1046
+ "default": false,
1047
+ "type": "boolean"
1048
+ },
1049
+ "ignoredTypeNames": {
1050
+ "description": "Stringified type names to ignore.",
1051
+ "default": ["Error", "RegExp", "URL", "URLSearchParams"],
1052
+ "type": "array",
1053
+ "items": {
1054
+ "type": "string"
1055
+ }
1056
+ }
1057
+ },
1058
+ "additionalProperties": false
1059
+ },
1060
+ "type/no-confusing-void-expression": {
1061
+ "type": "object",
1062
+ "properties": {
1063
+ "ignoreArrowShorthand": {
1064
+ "description": "Whether to ignore \"shorthand\" `() =>` arrow functions: those without `{ ... }` braces.",
1065
+ "default": false,
1066
+ "type": "boolean"
1067
+ },
1068
+ "ignoreVoidOperator": {
1069
+ "description": "Whether to ignore returns that start with the `void` operator.",
1070
+ "default": false,
1071
+ "type": "boolean"
1072
+ },
1073
+ "ignoreVoidReturningFunctions": {
1074
+ "description": "Whether to ignore returns from functions with explicit `void` return types and functions with contextual `void` return types.",
1075
+ "default": false,
1076
+ "type": "boolean"
1077
+ }
1078
+ },
1079
+ "additionalProperties": false
1080
+ },
1081
+ "type/no-deprecated": {
1082
+ "type": "object",
1083
+ "properties": {
1084
+ "allow": {
1085
+ "description": "Type specifiers that can be allowed.",
1086
+ "default": [],
1087
+ "type": "array",
1088
+ "items": {
1089
+ "oneOf": [
1090
+ {
1091
+ "type": "string"
1092
+ },
1093
+ {
1094
+ "type": "object",
1095
+ "properties": {
1096
+ "from": {
1097
+ "type": "string",
1098
+ "enum": ["file"]
1099
+ },
1100
+ "name": {
1101
+ "oneOf": [
1102
+ {
1103
+ "type": "string"
1104
+ },
1105
+ {
1106
+ "type": "array",
1107
+ "items": {
1108
+ "type": "string"
1109
+ },
1110
+ "minItems": 1,
1111
+ "uniqueItems": true
1112
+ }
1113
+ ]
1114
+ },
1115
+ "path": {
1116
+ "type": "string"
1117
+ }
1118
+ },
1119
+ "additionalProperties": false,
1120
+ "required": ["from", "name"]
1121
+ },
1122
+ {
1123
+ "type": "object",
1124
+ "properties": {
1125
+ "from": {
1126
+ "type": "string",
1127
+ "enum": ["lib"]
1128
+ },
1129
+ "name": {
1130
+ "oneOf": [
1131
+ {
1132
+ "type": "string"
1133
+ },
1134
+ {
1135
+ "type": "array",
1136
+ "items": {
1137
+ "type": "string"
1138
+ },
1139
+ "minItems": 1,
1140
+ "uniqueItems": true
1141
+ }
1142
+ ]
1143
+ }
1144
+ },
1145
+ "additionalProperties": false,
1146
+ "required": ["from", "name"]
1147
+ },
1148
+ {
1149
+ "type": "object",
1150
+ "properties": {
1151
+ "from": {
1152
+ "type": "string",
1153
+ "enum": ["package"]
1154
+ },
1155
+ "name": {
1156
+ "oneOf": [
1157
+ {
1158
+ "type": "string"
1159
+ },
1160
+ {
1161
+ "type": "array",
1162
+ "items": {
1163
+ "type": "string"
1164
+ },
1165
+ "minItems": 1,
1166
+ "uniqueItems": true
1167
+ }
1168
+ ]
1169
+ },
1170
+ "package": {
1171
+ "type": "string"
1172
+ }
1173
+ },
1174
+ "additionalProperties": false,
1175
+ "required": ["from", "name", "package"]
1176
+ }
1177
+ ]
1178
+ }
1179
+ }
1180
+ },
1181
+ "additionalProperties": false
1182
+ },
1183
+ "type/no-duplicate-type-constituents": {
1184
+ "type": "object",
1185
+ "properties": {
1186
+ "ignoreIntersections": {
1187
+ "description": "Whether to ignore `&` intersections.",
1188
+ "default": false,
1189
+ "type": "boolean"
1190
+ },
1191
+ "ignoreUnions": {
1192
+ "description": "Whether to ignore `|` unions.",
1193
+ "default": false,
1194
+ "type": "boolean"
1195
+ }
1196
+ },
1197
+ "additionalProperties": false
1198
+ },
1199
+ "type/no-floating-promises": {
1200
+ "type": "object",
1201
+ "properties": {
1202
+ "allowForKnownSafeCalls": {
1203
+ "description": "Type specifiers of functions whose calls are safe to float.",
1204
+ "default": [],
1205
+ "type": "array",
1206
+ "items": {
1207
+ "oneOf": [
1208
+ {
1209
+ "type": "string"
1210
+ },
1211
+ {
1212
+ "type": "object",
1213
+ "properties": {
1214
+ "from": {
1215
+ "type": "string",
1216
+ "enum": ["file"]
1217
+ },
1218
+ "name": {
1219
+ "oneOf": [
1220
+ {
1221
+ "type": "string"
1222
+ },
1223
+ {
1224
+ "type": "array",
1225
+ "items": {
1226
+ "type": "string"
1227
+ },
1228
+ "minItems": 1,
1229
+ "uniqueItems": true
1230
+ }
1231
+ ]
1232
+ },
1233
+ "path": {
1234
+ "type": "string"
1235
+ }
1236
+ },
1237
+ "additionalProperties": false,
1238
+ "required": ["from", "name"]
1239
+ },
1240
+ {
1241
+ "type": "object",
1242
+ "properties": {
1243
+ "from": {
1244
+ "type": "string",
1245
+ "enum": ["lib"]
1246
+ },
1247
+ "name": {
1248
+ "oneOf": [
1249
+ {
1250
+ "type": "string"
1251
+ },
1252
+ {
1253
+ "type": "array",
1254
+ "items": {
1255
+ "type": "string"
1256
+ },
1257
+ "minItems": 1,
1258
+ "uniqueItems": true
1259
+ }
1260
+ ]
1261
+ }
1262
+ },
1263
+ "additionalProperties": false,
1264
+ "required": ["from", "name"]
1265
+ },
1266
+ {
1267
+ "type": "object",
1268
+ "properties": {
1269
+ "from": {
1270
+ "type": "string",
1271
+ "enum": ["package"]
1272
+ },
1273
+ "name": {
1274
+ "oneOf": [
1275
+ {
1276
+ "type": "string"
1277
+ },
1278
+ {
1279
+ "type": "array",
1280
+ "items": {
1281
+ "type": "string"
1282
+ },
1283
+ "minItems": 1,
1284
+ "uniqueItems": true
1285
+ }
1286
+ ]
1287
+ },
1288
+ "package": {
1289
+ "type": "string"
1290
+ }
1291
+ },
1292
+ "additionalProperties": false,
1293
+ "required": ["from", "name", "package"]
1294
+ }
1295
+ ]
1296
+ }
1297
+ },
1298
+ "allowForKnownSafePromises": {
1299
+ "description": "Type specifiers that are known to be safe to float.",
1300
+ "default": [],
1301
+ "type": "array",
1302
+ "items": {
1303
+ "oneOf": [
1304
+ {
1305
+ "type": "string"
1306
+ },
1307
+ {
1308
+ "type": "object",
1309
+ "properties": {
1310
+ "from": {
1311
+ "type": "string",
1312
+ "enum": ["file"]
1313
+ },
1314
+ "name": {
1315
+ "oneOf": [
1316
+ {
1317
+ "type": "string"
1318
+ },
1319
+ {
1320
+ "type": "array",
1321
+ "items": {
1322
+ "type": "string"
1323
+ },
1324
+ "minItems": 1,
1325
+ "uniqueItems": true
1326
+ }
1327
+ ]
1328
+ },
1329
+ "path": {
1330
+ "type": "string"
1331
+ }
1332
+ },
1333
+ "additionalProperties": false,
1334
+ "required": ["from", "name"]
1335
+ },
1336
+ {
1337
+ "type": "object",
1338
+ "properties": {
1339
+ "from": {
1340
+ "type": "string",
1341
+ "enum": ["lib"]
1342
+ },
1343
+ "name": {
1344
+ "oneOf": [
1345
+ {
1346
+ "type": "string"
1347
+ },
1348
+ {
1349
+ "type": "array",
1350
+ "items": {
1351
+ "type": "string"
1352
+ },
1353
+ "minItems": 1,
1354
+ "uniqueItems": true
1355
+ }
1356
+ ]
1357
+ }
1358
+ },
1359
+ "additionalProperties": false,
1360
+ "required": ["from", "name"]
1361
+ },
1362
+ {
1363
+ "type": "object",
1364
+ "properties": {
1365
+ "from": {
1366
+ "type": "string",
1367
+ "enum": ["package"]
1368
+ },
1369
+ "name": {
1370
+ "oneOf": [
1371
+ {
1372
+ "type": "string"
1373
+ },
1374
+ {
1375
+ "type": "array",
1376
+ "items": {
1377
+ "type": "string"
1378
+ },
1379
+ "minItems": 1,
1380
+ "uniqueItems": true
1381
+ }
1382
+ ]
1383
+ },
1384
+ "package": {
1385
+ "type": "string"
1386
+ }
1387
+ },
1388
+ "additionalProperties": false,
1389
+ "required": ["from", "name", "package"]
1390
+ }
1391
+ ]
1392
+ }
1393
+ },
1394
+ "checkThenables": {
1395
+ "description": "Whether to check all \"Thenable\"s, not just the built-in Promise type.",
1396
+ "default": false,
1397
+ "type": "boolean"
1398
+ },
1399
+ "ignoreIIFE": {
1400
+ "description": "Whether to ignore async IIFEs (Immediately Invoked Function Expressions).",
1401
+ "default": false,
1402
+ "type": "boolean"
1403
+ },
1404
+ "ignoreVoid": {
1405
+ "description": "Whether to ignore `void` expressions.",
1406
+ "default": true,
1407
+ "type": "boolean"
1408
+ }
1409
+ },
1410
+ "additionalProperties": false
1411
+ },
1412
+ "type/no-meaningless-void-operator": {
1413
+ "type": "object",
1414
+ "properties": {
1415
+ "checkNever": {
1416
+ "description": "Whether to suggest removing `void` when a call's return type is `never`.",
1417
+ "default": false,
1418
+ "type": "boolean"
1419
+ }
1420
+ },
1421
+ "additionalProperties": false
1422
+ },
1423
+ "type/no-misused-promises": {
1424
+ "type": "object",
1425
+ "properties": {
1426
+ "checksConditionals": {
1427
+ "description": "Whether to warn when a Promise is provided to conditional statements.",
1428
+ "default": true,
1429
+ "oneOf": [
1430
+ {
1431
+ "description": "Whether to check conditionals.",
1432
+ "type": "boolean"
1433
+ },
1434
+ {
1435
+ "description": "Detailed settings for conditional inspection.",
1436
+ "type": "object",
1437
+ "properties": {
1438
+ "flagUnions": {
1439
+ "description": "Configures how union types containing Promise-like types are checked.",
1440
+ "type": "string",
1441
+ "enum": ["all", "strict", "none"]
1442
+ }
1443
+ },
1444
+ "additionalProperties": false
1445
+ }
1446
+ ]
1447
+ },
1448
+ "checksSpreads": {
1449
+ "description": "Whether to warn when `...` spreading a `Promise`.",
1450
+ "default": true,
1451
+ "type": "boolean"
1452
+ },
1453
+ "checksVoidReturn": {
1454
+ "description": "Whether to warn when a Promise is returned from a function typed as returning `void`.",
1455
+ "default": true,
1456
+ "oneOf": [
1457
+ {
1458
+ "description": "Whether to disable checking all asynchronous functions.",
1459
+ "type": "boolean"
1460
+ },
1461
+ {
1462
+ "description": "Which forms of functions may have checking disabled.",
1463
+ "type": "object",
1464
+ "properties": {
1465
+ "arguments": {
1466
+ "description": "Disables checking an asynchronous function passed as argument where the parameter type expects a function that returns `void`.",
1467
+ "type": "boolean"
1468
+ },
1469
+ "attributes": {
1470
+ "description": "Disables checking an asynchronous function passed as a JSX attribute expected to be a function that returns `void`.",
1471
+ "type": "boolean"
1472
+ },
1473
+ "inheritedMethods": {
1474
+ "description": "Disables checking an asynchronous method in a type that extends or implements another type expecting that method to return `void`.",
1475
+ "type": "boolean"
1476
+ },
1477
+ "properties": {
1478
+ "description": "Disables checking an asynchronous function passed as an object property expected to be a function that returns `void`.",
1479
+ "type": "boolean"
1480
+ },
1481
+ "returns": {
1482
+ "description": "Disables checking an asynchronous function returned in a function whose return type is a function that returns `void`.",
1483
+ "type": "boolean"
1484
+ },
1485
+ "variables": {
1486
+ "description": "Disables checking an asynchronous function used as a variable whose return type is a function that returns `void`.",
1487
+ "type": "boolean"
1488
+ }
1489
+ },
1490
+ "additionalProperties": false
1491
+ }
1492
+ ]
1493
+ }
1494
+ },
1495
+ "additionalProperties": false
1496
+ },
1497
+ "type/no-misused-spread": {
1498
+ "type": "object",
1499
+ "properties": {
1500
+ "allow": {
1501
+ "description": "An array of type specifiers that are known to be safe to spread.",
1502
+ "default": [],
1503
+ "type": "array",
1504
+ "items": {
1505
+ "oneOf": [
1506
+ {
1507
+ "type": "string"
1508
+ },
1509
+ {
1510
+ "type": "object",
1511
+ "properties": {
1512
+ "from": {
1513
+ "type": "string",
1514
+ "enum": ["file"]
1515
+ },
1516
+ "name": {
1517
+ "oneOf": [
1518
+ {
1519
+ "type": "string"
1520
+ },
1521
+ {
1522
+ "type": "array",
1523
+ "items": {
1524
+ "type": "string"
1525
+ },
1526
+ "minItems": 1,
1527
+ "uniqueItems": true
1528
+ }
1529
+ ]
1530
+ },
1531
+ "path": {
1532
+ "type": "string"
1533
+ }
1534
+ },
1535
+ "additionalProperties": false,
1536
+ "required": ["from", "name"]
1537
+ },
1538
+ {
1539
+ "type": "object",
1540
+ "properties": {
1541
+ "from": {
1542
+ "type": "string",
1543
+ "enum": ["lib"]
1544
+ },
1545
+ "name": {
1546
+ "oneOf": [
1547
+ {
1548
+ "type": "string"
1549
+ },
1550
+ {
1551
+ "type": "array",
1552
+ "items": {
1553
+ "type": "string"
1554
+ },
1555
+ "minItems": 1,
1556
+ "uniqueItems": true
1557
+ }
1558
+ ]
1559
+ }
1560
+ },
1561
+ "additionalProperties": false,
1562
+ "required": ["from", "name"]
1563
+ },
1564
+ {
1565
+ "type": "object",
1566
+ "properties": {
1567
+ "from": {
1568
+ "type": "string",
1569
+ "enum": ["package"]
1570
+ },
1571
+ "name": {
1572
+ "oneOf": [
1573
+ {
1574
+ "type": "string"
1575
+ },
1576
+ {
1577
+ "type": "array",
1578
+ "items": {
1579
+ "type": "string"
1580
+ },
1581
+ "minItems": 1,
1582
+ "uniqueItems": true
1583
+ }
1584
+ ]
1585
+ },
1586
+ "package": {
1587
+ "type": "string"
1588
+ }
1589
+ },
1590
+ "additionalProperties": false,
1591
+ "required": ["from", "name", "package"]
1592
+ }
1593
+ ]
1594
+ }
1595
+ }
1596
+ },
1597
+ "additionalProperties": false
1598
+ },
1599
+ "type/no-unnecessary-boolean-literal-compare": {
1600
+ "type": "object",
1601
+ "properties": {
1602
+ "allowComparingNullableBooleansToFalse": {
1603
+ "description": "Whether to allow comparisons between nullable boolean variables and `false`.",
1604
+ "default": true,
1605
+ "type": "boolean"
1606
+ },
1607
+ "allowComparingNullableBooleansToTrue": {
1608
+ "description": "Whether to allow comparisons between nullable boolean variables and `true`.",
1609
+ "default": true,
1610
+ "type": "boolean"
1611
+ },
1612
+ "allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing": {
1613
+ "description": "Unless this is set to `true`, the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`.",
1614
+ "default": false,
1615
+ "type": "boolean"
1616
+ }
1617
+ },
1618
+ "additionalProperties": false
1619
+ },
1620
+ "type/no-unnecessary-condition": {
1621
+ "type": "object",
1622
+ "properties": {
1623
+ "allowConstantLoopConditions": {
1624
+ "description": "Whether to ignore constant loop conditions, such as `while (true)`.",
1625
+ "default": "never",
1626
+ "oneOf": [
1627
+ {
1628
+ "description": "Always ignore or not ignore the loop conditions",
1629
+ "type": "boolean"
1630
+ },
1631
+ {
1632
+ "description": "Which situations to ignore constant conditions in.",
1633
+ "type": "string",
1634
+ "enum": ["always", "never", "only-allowed-literals"]
1635
+ }
1636
+ ]
1637
+ },
1638
+ "allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing": {
1639
+ "description": "Whether to not error when running with a tsconfig that has strictNullChecks turned.",
1640
+ "default": false,
1641
+ "type": "boolean"
1642
+ },
1643
+ "checkTypePredicates": {
1644
+ "description": "Whether to check the asserted argument of a type predicate function for unnecessary conditions",
1645
+ "default": false,
1646
+ "type": "boolean"
1647
+ }
1648
+ },
1649
+ "additionalProperties": false
1650
+ },
1651
+ "type/no-unnecessary-type-assertion": {
1652
+ "type": "object",
1653
+ "properties": {
1654
+ "checkLiteralConstAssertions": {
1655
+ "description": "Whether to check literal const assertions.",
1656
+ "type": "boolean"
1657
+ },
1658
+ "typesToIgnore": {
1659
+ "description": "A list of type names to ignore.",
1660
+ "type": "array",
1661
+ "items": {
1662
+ "type": "string"
1663
+ }
1664
+ }
1665
+ },
1666
+ "additionalProperties": false
1667
+ },
1668
+ "type/no-unsafe-member-access": {
1669
+ "type": "object",
1670
+ "properties": {
1671
+ "allowOptionalChaining": {
1672
+ "description": "Whether to allow `?.` optional chains on `any` values.",
1673
+ "default": false,
1674
+ "type": "boolean"
1675
+ }
1676
+ },
1677
+ "additionalProperties": false
1678
+ },
1679
+ "type/only-throw-error": {
1680
+ "type": "object",
1681
+ "properties": {
1682
+ "allow": {
1683
+ "description": "Type specifiers that can be thrown.",
1684
+ "default": [],
1685
+ "type": "array",
1686
+ "items": {
1687
+ "oneOf": [
1688
+ {
1689
+ "type": "string"
1690
+ },
1691
+ {
1692
+ "type": "object",
1693
+ "properties": {
1694
+ "from": {
1695
+ "type": "string",
1696
+ "enum": ["file"]
1697
+ },
1698
+ "name": {
1699
+ "oneOf": [
1700
+ {
1701
+ "type": "string"
1702
+ },
1703
+ {
1704
+ "type": "array",
1705
+ "items": {
1706
+ "type": "string"
1707
+ },
1708
+ "minItems": 1,
1709
+ "uniqueItems": true
1710
+ }
1711
+ ]
1712
+ },
1713
+ "path": {
1714
+ "type": "string"
1715
+ }
1716
+ },
1717
+ "additionalProperties": false,
1718
+ "required": ["from", "name"]
1719
+ },
1720
+ {
1721
+ "type": "object",
1722
+ "properties": {
1723
+ "from": {
1724
+ "type": "string",
1725
+ "enum": ["lib"]
1726
+ },
1727
+ "name": {
1728
+ "oneOf": [
1729
+ {
1730
+ "type": "string"
1731
+ },
1732
+ {
1733
+ "type": "array",
1734
+ "items": {
1735
+ "type": "string"
1736
+ },
1737
+ "minItems": 1,
1738
+ "uniqueItems": true
1739
+ }
1740
+ ]
1741
+ }
1742
+ },
1743
+ "additionalProperties": false,
1744
+ "required": ["from", "name"]
1745
+ },
1746
+ {
1747
+ "type": "object",
1748
+ "properties": {
1749
+ "from": {
1750
+ "type": "string",
1751
+ "enum": ["package"]
1752
+ },
1753
+ "name": {
1754
+ "oneOf": [
1755
+ {
1756
+ "type": "string"
1757
+ },
1758
+ {
1759
+ "type": "array",
1760
+ "items": {
1761
+ "type": "string"
1762
+ },
1763
+ "minItems": 1,
1764
+ "uniqueItems": true
1765
+ }
1766
+ ]
1767
+ },
1768
+ "package": {
1769
+ "type": "string"
1770
+ }
1771
+ },
1772
+ "additionalProperties": false,
1773
+ "required": ["from", "name", "package"]
1774
+ }
1775
+ ]
1776
+ }
1777
+ },
1778
+ "allowRethrowing": {
1779
+ "description": "Whether to allow rethrowing caught values that are not `Error` objects.",
1780
+ "default": true,
1781
+ "type": "boolean"
1782
+ },
1783
+ "allowThrowingAny": {
1784
+ "description": "Whether to always allow throwing values typed as `any`.",
1785
+ "default": true,
1786
+ "type": "boolean"
1787
+ },
1788
+ "allowThrowingUnknown": {
1789
+ "description": "Whether to always allow throwing values typed as `unknown`.",
1790
+ "default": true,
1791
+ "type": "boolean"
1792
+ }
1793
+ },
1794
+ "additionalProperties": false
1795
+ },
1796
+ "type/prefer-promise-reject-errors": {
1797
+ "type": "object",
1798
+ "properties": {
1799
+ "allow": {
1800
+ "description": "Type specifiers that can be used as Promise rejection reasons.",
1801
+ "default": [],
1802
+ "type": "array",
1803
+ "items": {
1804
+ "oneOf": [
1805
+ {
1806
+ "type": "string"
1807
+ },
1808
+ {
1809
+ "type": "object",
1810
+ "properties": {
1811
+ "from": {
1812
+ "type": "string",
1813
+ "enum": ["file"]
1814
+ },
1815
+ "name": {
1816
+ "oneOf": [
1817
+ {
1818
+ "type": "string"
1819
+ },
1820
+ {
1821
+ "type": "array",
1822
+ "items": {
1823
+ "type": "string"
1824
+ },
1825
+ "minItems": 1,
1826
+ "uniqueItems": true
1827
+ }
1828
+ ]
1829
+ },
1830
+ "path": {
1831
+ "type": "string"
1832
+ }
1833
+ },
1834
+ "additionalProperties": false,
1835
+ "required": ["from", "name"]
1836
+ },
1837
+ {
1838
+ "type": "object",
1839
+ "properties": {
1840
+ "from": {
1841
+ "type": "string",
1842
+ "enum": ["lib"]
1843
+ },
1844
+ "name": {
1845
+ "oneOf": [
1846
+ {
1847
+ "type": "string"
1848
+ },
1849
+ {
1850
+ "type": "array",
1851
+ "items": {
1852
+ "type": "string"
1853
+ },
1854
+ "minItems": 1,
1855
+ "uniqueItems": true
1856
+ }
1857
+ ]
1858
+ }
1859
+ },
1860
+ "additionalProperties": false,
1861
+ "required": ["from", "name"]
1862
+ },
1863
+ {
1864
+ "type": "object",
1865
+ "properties": {
1866
+ "from": {
1867
+ "type": "string",
1868
+ "enum": ["package"]
1869
+ },
1870
+ "name": {
1871
+ "oneOf": [
1872
+ {
1873
+ "type": "string"
1874
+ },
1875
+ {
1876
+ "type": "array",
1877
+ "items": {
1878
+ "type": "string"
1879
+ },
1880
+ "minItems": 1,
1881
+ "uniqueItems": true
1882
+ }
1883
+ ]
1884
+ },
1885
+ "package": {
1886
+ "type": "string"
1887
+ }
1888
+ },
1889
+ "additionalProperties": false,
1890
+ "required": ["from", "name", "package"]
1891
+ }
1892
+ ]
1893
+ }
1894
+ },
1895
+ "allowEmptyReject": {
1896
+ "description": "Whether to allow calls to `Promise.reject()` with no arguments.",
1897
+ "default": false,
1898
+ "type": "boolean"
1899
+ },
1900
+ "allowThrowingAny": {
1901
+ "description": "Whether to always allow throwing values typed as `any`.",
1902
+ "default": false,
1903
+ "type": "boolean"
1904
+ },
1905
+ "allowThrowingUnknown": {
1906
+ "description": "Whether to always allow throwing values typed as `unknown`.",
1907
+ "default": false,
1908
+ "type": "boolean"
1909
+ }
1910
+ },
1911
+ "additionalProperties": false
1912
+ },
1913
+ "type/restrict-plus-operands": {
1914
+ "type": "object",
1915
+ "properties": {
1916
+ "allowAny": {
1917
+ "description": "Whether to allow `any` typed values.",
1918
+ "default": true,
1919
+ "type": "boolean"
1920
+ },
1921
+ "allowBoolean": {
1922
+ "description": "Whether to allow `boolean` typed values.",
1923
+ "default": true,
1924
+ "type": "boolean"
1925
+ },
1926
+ "allowNullish": {
1927
+ "description": "Whether to allow potentially `null` or `undefined` typed values.",
1928
+ "default": true,
1929
+ "type": "boolean"
1930
+ },
1931
+ "allowNumberAndString": {
1932
+ "description": "Whether to allow `bigint`/`number` typed values and `string` typed values to be added together.",
1933
+ "default": true,
1934
+ "type": "boolean"
1935
+ },
1936
+ "allowRegExp": {
1937
+ "description": "Whether to allow `regexp` typed values.",
1938
+ "default": true,
1939
+ "type": "boolean"
1940
+ },
1941
+ "skipCompoundAssignments": {
1942
+ "description": "Whether to skip compound assignments such as `+=`.",
1943
+ "default": false,
1944
+ "type": "boolean"
1945
+ }
1946
+ },
1947
+ "additionalProperties": false
1948
+ },
1949
+ "type/restrict-template-expressions": {
1950
+ "type": "object",
1951
+ "properties": {
1952
+ "allowAny": {
1953
+ "description": "Whether to allow `any` typed values in template expressions.",
1954
+ "default": true,
1955
+ "type": "boolean"
1956
+ },
1957
+ "allowArray": {
1958
+ "description": "Whether to allow `array` typed values in template expressions.",
1959
+ "type": "boolean"
1960
+ },
1961
+ "allowBoolean": {
1962
+ "description": "Whether to allow `boolean` typed values in template expressions.",
1963
+ "default": true,
1964
+ "type": "boolean"
1965
+ },
1966
+ "allowNullish": {
1967
+ "description": "Whether to allow `nullish` typed values in template expressions.",
1968
+ "default": true,
1969
+ "type": "boolean"
1970
+ },
1971
+ "allowNumber": {
1972
+ "description": "Whether to allow `number` typed values in template expressions.",
1973
+ "default": true,
1974
+ "type": "boolean"
1975
+ },
1976
+ "allowRegExp": {
1977
+ "description": "Whether to allow `regexp` typed values in template expressions.",
1978
+ "default": true,
1979
+ "type": "boolean"
1980
+ },
1981
+ "allowNever": {
1982
+ "description": "Whether to allow `never` typed values in template expressions.",
1983
+ "type": "boolean"
1984
+ },
1985
+ "allow": {
1986
+ "description": "Types to allow in template expressions.",
1987
+ "default": [
1988
+ {
1989
+ "name": ["Error", "URL", "URLSearchParams"],
1990
+ "from": "lib"
1991
+ }
1992
+ ],
1993
+ "type": "array",
1994
+ "items": {
1995
+ "oneOf": [
1996
+ {
1997
+ "type": "string"
1998
+ },
1999
+ {
2000
+ "type": "object",
2001
+ "properties": {
2002
+ "from": {
2003
+ "type": "string",
2004
+ "enum": ["file"]
2005
+ },
2006
+ "name": {
2007
+ "oneOf": [
2008
+ {
2009
+ "type": "string"
2010
+ },
2011
+ {
2012
+ "type": "array",
2013
+ "items": {
2014
+ "type": "string"
2015
+ },
2016
+ "minItems": 1,
2017
+ "uniqueItems": true
2018
+ }
2019
+ ]
2020
+ },
2021
+ "path": {
2022
+ "type": "string"
2023
+ }
2024
+ },
2025
+ "additionalProperties": false,
2026
+ "required": ["from", "name"]
2027
+ },
2028
+ {
2029
+ "type": "object",
2030
+ "properties": {
2031
+ "from": {
2032
+ "type": "string",
2033
+ "enum": ["lib"]
2034
+ },
2035
+ "name": {
2036
+ "oneOf": [
2037
+ {
2038
+ "type": "string"
2039
+ },
2040
+ {
2041
+ "type": "array",
2042
+ "items": {
2043
+ "type": "string"
2044
+ },
2045
+ "minItems": 1,
2046
+ "uniqueItems": true
2047
+ }
2048
+ ]
2049
+ }
2050
+ },
2051
+ "additionalProperties": false,
2052
+ "required": ["from", "name"]
2053
+ },
2054
+ {
2055
+ "type": "object",
2056
+ "properties": {
2057
+ "from": {
2058
+ "type": "string",
2059
+ "enum": ["package"]
2060
+ },
2061
+ "name": {
2062
+ "oneOf": [
2063
+ {
2064
+ "type": "string"
2065
+ },
2066
+ {
2067
+ "type": "array",
2068
+ "items": {
2069
+ "type": "string"
2070
+ },
2071
+ "minItems": 1,
2072
+ "uniqueItems": true
2073
+ }
2074
+ ]
2075
+ },
2076
+ "package": {
2077
+ "type": "string"
2078
+ }
2079
+ },
2080
+ "additionalProperties": false,
2081
+ "required": ["from", "name", "package"]
2082
+ }
2083
+ ]
2084
+ }
2085
+ }
2086
+ },
2087
+ "additionalProperties": false
2088
+ },
2089
+ "type/return-await": {
2090
+ "default": "in-try-catch",
2091
+ "type": "string",
2092
+ "oneOf": [
2093
+ {
2094
+ "description": "Requires that all returned promises be awaited.",
2095
+ "type": "string",
2096
+ "enum": ["always"]
2097
+ },
2098
+ {
2099
+ "description": "In error-handling contexts, the rule enforces that returned promises must be awaited. In ordinary contexts, the rule does not enforce any particular behavior around whether returned promises are awaited.",
2100
+ "type": "string",
2101
+ "enum": ["error-handling-correctness-only"]
2102
+ },
2103
+ {
2104
+ "description": "In error-handling contexts, the rule enforces that returned promises must be awaited. In ordinary contexts, the rule enforces that returned promises _must not_ be awaited.",
2105
+ "type": "string",
2106
+ "enum": ["in-try-catch"]
2107
+ },
2108
+ {
2109
+ "description": "Disallows awaiting any returned promises.",
2110
+ "type": "string",
2111
+ "enum": ["never"]
2112
+ }
2113
+ ]
2114
+ },
2115
+ "type/unbound-method": {
2116
+ "type": "object",
2117
+ "properties": {
2118
+ "ignoreStatic": {
2119
+ "description": "Whether to skip checking whether `static` methods are correctly bound.",
2120
+ "default": false,
2121
+ "type": "boolean"
2122
+ }
2123
+ },
2124
+ "additionalProperties": false
2125
+ },
1030
2126
  "vue/no-unused-script-vars": {
1031
2127
  "type": "object",
1032
2128
  "properties": {