@biomejs/wasm-nodejs 2.0.0-beta.2 → 2.0.0-beta.3

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/biome_wasm.d.ts CHANGED
@@ -878,6 +878,10 @@ interface A11y {
878
878
  * Enforce explicit role property is not the same as implicit/default role property on an element.
879
879
  */
880
880
  noRedundantRoles?: RuleFixConfiguration_for_Null;
881
+ /**
882
+ * Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
883
+ */
884
+ noStaticElementInteractions?: RuleConfiguration_for_Null;
881
885
  /**
882
886
  * Enforces the usage of the title element for the svg element.
883
887
  */
@@ -902,6 +906,10 @@ interface A11y {
902
906
  * Enforce that elements with ARIA roles must have all required ARIA attributes for that role.
903
907
  */
904
908
  useAriaPropsForRole?: RuleConfiguration_for_Null;
909
+ /**
910
+ * Enforce that ARIA properties are valid for the roles that are supported by the element.
911
+ */
912
+ useAriaPropsSupportedByRole?: RuleConfiguration_for_Null;
905
913
  /**
906
914
  * Enforces the usage of the attribute type for the element button
907
915
  */
@@ -958,6 +966,10 @@ interface A11y {
958
966
  * Enforce that ARIA state and property values are valid.
959
967
  */
960
968
  useValidAriaValues?: RuleConfiguration_for_Null;
969
+ /**
970
+ * Use valid values for the autocomplete attribute on input elements.
971
+ */
972
+ useValidAutocomplete?: RuleConfiguration_for_UseValidAutocompleteOptions;
961
973
  /**
962
974
  * Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country.
963
975
  */
@@ -1012,6 +1024,10 @@ interface Complexity {
1012
1024
  * Disallow empty exports that don't change anything in a module file.
1013
1025
  */
1014
1026
  noUselessEmptyExport?: RuleFixConfiguration_for_Null;
1027
+ /**
1028
+ * Disallow unnecessary escape sequence in regular expression literals.
1029
+ */
1030
+ noUselessEscapeInRegex?: RuleFixConfiguration_for_Null;
1015
1031
  /**
1016
1032
  * Disallow unnecessary fragments
1017
1033
  */
@@ -1032,6 +1048,10 @@ interface Complexity {
1032
1048
  * Disallow unnecessary concatenation of string or template literals.
1033
1049
  */
1034
1050
  noUselessStringConcat?: RuleFixConfiguration_for_Null;
1051
+ /**
1052
+ * Disallow unnecessary String.raw function in template string literals without any escape sequence.
1053
+ */
1054
+ noUselessStringRaw?: RuleConfiguration_for_Null;
1035
1055
  /**
1036
1056
  * Disallow useless case in switch statements.
1037
1057
  */
@@ -1089,7 +1109,7 @@ interface Complexity {
1089
1109
  */
1090
1110
  useRegexLiterals?: RuleFixConfiguration_for_Null;
1091
1111
  /**
1092
- * Disallow number literal object member names which are not base10 or uses underscore as separator
1112
+ * Disallow number literal object member names which are not base 10 or use underscore as separator.
1093
1113
  */
1094
1114
  useSimpleNumberKeys?: RuleFixConfiguration_for_Null;
1095
1115
  /**
@@ -1158,10 +1178,6 @@ interface Correctness {
1158
1178
  * Disallows invalid named grid areas in CSS Grid Layouts.
1159
1179
  */
1160
1180
  noInvalidGridAreas?: RuleConfiguration_for_Null;
1161
- /**
1162
- * Disallow new operators with global non-constructor functions.
1163
- */
1164
- noInvalidNewBuiltin?: RuleFixConfiguration_for_Null;
1165
1181
  /**
1166
1182
  * Disallow the use of @import at-rules in invalid positions.
1167
1183
  */
@@ -1171,9 +1187,9 @@ interface Correctness {
1171
1187
  */
1172
1188
  noInvalidUseBeforeDeclaration?: RuleConfiguration_for_Null;
1173
1189
  /**
1174
- * Disallow new operators with the Symbol object.
1190
+ * Disallow missing var function for css variables.
1175
1191
  */
1176
- noNewSymbol?: RuleFixConfiguration_for_Null;
1192
+ noMissingVarFunction?: RuleConfiguration_for_Null;
1177
1193
  /**
1178
1194
  * Forbid the use of Node.js builtin modules.
1179
1195
  */
@@ -1230,6 +1246,18 @@ interface Correctness {
1230
1246
  * Disallow unknown properties.
1231
1247
  */
1232
1248
  noUnknownProperty?: RuleConfiguration_for_Null;
1249
+ /**
1250
+ * Disallow unknown pseudo-class selectors.
1251
+ */
1252
+ noUnknownPseudoClass?: RuleConfiguration_for_Null;
1253
+ /**
1254
+ * Disallow unknown pseudo-element selectors.
1255
+ */
1256
+ noUnknownPseudoElement?: RuleConfiguration_for_Null;
1257
+ /**
1258
+ * Disallow unknown type selectors.
1259
+ */
1260
+ noUnknownTypeSelector?: RuleConfiguration_for_Null;
1233
1261
  /**
1234
1262
  * Disallow unknown CSS units.
1235
1263
  */
@@ -1313,7 +1341,7 @@ interface Correctness {
1313
1341
  /**
1314
1342
  * Disallow missing key props in iterators/collection literals.
1315
1343
  */
1316
- useJsxKeyInIterable?: RuleConfiguration_for_Null;
1344
+ useJsxKeyInIterable?: RuleConfiguration_for_UseJsxKeyInIterableOptions;
1317
1345
  /**
1318
1346
  * Enforce "for" loop update clause moving the counter in the right direction.
1319
1347
  */
@@ -1332,58 +1360,14 @@ interface Nursery {
1332
1360
  * Disallow bitwise operators.
1333
1361
  */
1334
1362
  noBitwiseOperators?: RuleConfiguration_for_NoBitwiseOperatorsOptions;
1335
- /**
1336
- * Disallow use of CommonJs module system in favor of ESM style imports.
1337
- */
1338
- noCommonJs?: RuleConfiguration_for_Null;
1339
1363
  /**
1340
1364
  * Disallow expressions where the operation doesn't affect the value
1341
1365
  */
1342
1366
  noConstantBinaryExpression?: RuleConfiguration_for_Null;
1343
- /**
1344
- * Disallow a lower specificity selector from coming after a higher specificity selector.
1345
- */
1346
- noDescendingSpecificity?: RuleConfiguration_for_Null;
1347
1367
  /**
1348
1368
  * Disallow destructuring props inside JSX components in Solid projects.
1349
1369
  */
1350
1370
  noDestructuredProps?: RuleConfiguration_for_Null;
1351
- /**
1352
- * Disallow direct assignments to document.cookie.
1353
- */
1354
- noDocumentCookie?: RuleConfiguration_for_Null;
1355
- /**
1356
- * Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
1357
- */
1358
- noDocumentImportInPage?: RuleConfiguration_for_Null;
1359
- /**
1360
- * Disallow duplicate custom properties within declaration blocks.
1361
- */
1362
- noDuplicateCustomProperties?: RuleConfiguration_for_Null;
1363
- /**
1364
- * Disallow duplicate conditions in if-else-if chains
1365
- */
1366
- noDuplicateElseIf?: RuleConfiguration_for_Null;
1367
- /**
1368
- * No duplicated fields in GraphQL operations.
1369
- */
1370
- noDuplicateFields?: RuleConfiguration_for_Null;
1371
- /**
1372
- * Disallow duplicate properties within declaration blocks.
1373
- */
1374
- noDuplicateProperties?: RuleConfiguration_for_Null;
1375
- /**
1376
- * Disallow accessing namespace imports dynamically.
1377
- */
1378
- noDynamicNamespaceImportAccess?: RuleConfiguration_for_Null;
1379
- /**
1380
- * Disallow TypeScript enum.
1381
- */
1382
- noEnum?: RuleConfiguration_for_Null;
1383
- /**
1384
- * Disallow exporting an imported variable.
1385
- */
1386
- noExportedImports?: RuleConfiguration_for_Null;
1387
1371
  /**
1388
1372
  * Require Promise-like statements to be handled appropriately.
1389
1373
  */
@@ -1392,18 +1376,6 @@ interface Nursery {
1392
1376
  * Disallow the use of __dirname and __filename in the global scope.
1393
1377
  */
1394
1378
  noGlobalDirnameFilename?: RuleFixConfiguration_for_Null;
1395
- /**
1396
- * Prevent usage of \<head> element in a Next.js project.
1397
- */
1398
- noHeadElement?: RuleConfiguration_for_Null;
1399
- /**
1400
- * Prevent using the next/head module in pages/_document.js on Next.js projects.
1401
- */
1402
- noHeadImportInDocument?: RuleConfiguration_for_Null;
1403
- /**
1404
- * Prevent usage of \<img> element in a Next.js project.
1405
- */
1406
- noImgElement?: RuleConfiguration_for_Null;
1407
1379
  /**
1408
1380
  * Prevent import cycles.
1409
1381
  */
@@ -1412,30 +1384,10 @@ interface Nursery {
1412
1384
  * Disallow the use of the !important style.
1413
1385
  */
1414
1386
  noImportantStyles?: RuleFixConfiguration_for_Null;
1415
- /**
1416
- * Disallows the use of irregular whitespace characters.
1417
- */
1418
- noIrregularWhitespace?: RuleConfiguration_for_Null;
1419
- /**
1420
- * Disallow missing var function for css variables.
1421
- */
1422
- noMissingVarFunction?: RuleConfiguration_for_Null;
1423
- /**
1424
- * Disallow nested ternary expressions.
1425
- */
1426
- noNestedTernary?: RuleConfiguration_for_Null;
1427
1387
  /**
1428
1388
  * Disallow use event handlers on non-interactive elements.
1429
1389
  */
1430
1390
  noNoninteractiveElementInteractions?: RuleConfiguration_for_Null;
1431
- /**
1432
- * Disallow octal escape sequences in string literals
1433
- */
1434
- noOctalEscape?: RuleFixConfiguration_for_Null;
1435
- /**
1436
- * Disallow the use of process.env.
1437
- */
1438
- noProcessEnv?: RuleConfiguration_for_Null;
1439
1391
  /**
1440
1392
  * Disallow the use of process global.
1441
1393
  */
@@ -1444,30 +1396,14 @@ interface Nursery {
1444
1396
  * Disallow the use of configured elements.
1445
1397
  */
1446
1398
  noRestrictedElements?: RuleConfiguration_for_NoRestrictedElementsOptions;
1447
- /**
1448
- * Disallow specified modules when loaded by import or require.
1449
- */
1450
- noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions;
1451
- /**
1452
- * Disallow user defined types.
1453
- */
1454
- noRestrictedTypes?: RuleFixConfiguration_for_NoRestrictedTypesOptions;
1455
1399
  /**
1456
1400
  * Disallow usage of sensitive data such as API keys and tokens.
1457
1401
  */
1458
1402
  noSecrets?: RuleConfiguration_for_NoSecretsOptions;
1459
1403
  /**
1460
- * Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
1461
- */
1462
- noStaticElementInteractions?: RuleConfiguration_for_Null;
1463
- /**
1464
- * Enforce the use of String.slice() over String.substr() and String.substring().
1404
+ * Disallow variable declarations from shadowing variables declared in the outer scope.
1465
1405
  */
1466
- noSubstr?: RuleFixConfiguration_for_Null;
1467
- /**
1468
- * Disallow template literal placeholder syntax in regular strings.
1469
- */
1470
- noTemplateCurlyInString?: RuleConfiguration_for_Null;
1406
+ noShadow?: RuleConfiguration_for_Null;
1471
1407
  /**
1472
1408
  * Prevents the use of the TypeScript directive @ts-ignore.
1473
1409
  */
@@ -1476,18 +1412,6 @@ interface Nursery {
1476
1412
  * Disallow unknown at-rules.
1477
1413
  */
1478
1414
  noUnknownAtRule?: RuleConfiguration_for_Null;
1479
- /**
1480
- * Disallow unknown pseudo-class selectors.
1481
- */
1482
- noUnknownPseudoClass?: RuleConfiguration_for_Null;
1483
- /**
1484
- * Disallow unknown pseudo-element selectors.
1485
- */
1486
- noUnknownPseudoElement?: RuleConfiguration_for_Null;
1487
- /**
1488
- * Disallow unknown type selectors.
1489
- */
1490
- noUnknownTypeSelector?: RuleConfiguration_for_Null;
1491
1415
  /**
1492
1416
  * Warn when importing non-existing exports.
1493
1417
  */
@@ -1497,65 +1421,29 @@ interface Nursery {
1497
1421
  */
1498
1422
  noUnwantedPolyfillio?: RuleConfiguration_for_Null;
1499
1423
  /**
1500
- * Disallow unnecessary escape sequence in regular expression literals.
1424
+ * Disallow useless backreferences in regular expression literals that always match an empty string.
1501
1425
  */
1502
- noUselessEscapeInRegex?: RuleFixConfiguration_for_Null;
1426
+ noUselessBackrefInRegex?: RuleConfiguration_for_Null;
1503
1427
  /**
1504
1428
  * Disallow unnecessary escapes in string literals.
1505
1429
  */
1506
1430
  noUselessEscapeInString?: RuleFixConfiguration_for_Null;
1507
- /**
1508
- * Disallow unnecessary String.raw function in template string literals without any escape sequence.
1509
- */
1510
- noUselessStringRaw?: RuleConfiguration_for_Null;
1511
1431
  /**
1512
1432
  * Disallow the use of useless undefined.
1513
1433
  */
1514
1434
  noUselessUndefined?: RuleFixConfiguration_for_Null;
1515
- /**
1516
- * Disallow use of @value rule in css modules.
1517
- */
1518
- noValueAtRule?: RuleConfiguration_for_Null;
1519
1435
  /**
1520
1436
  * It enables the recommended rules for this group
1521
1437
  */
1522
1438
  recommended?: boolean;
1523
- /**
1524
- * Disallow the use of overload signatures that are not next to each other.
1525
- */
1526
- useAdjacentOverloadSignatures?: RuleConfiguration_for_Null;
1527
- /**
1528
- * Enforce that ARIA properties are valid for the roles that are supported by the element.
1529
- */
1530
- useAriaPropsSupportedByRole?: RuleConfiguration_for_Null;
1531
- /**
1532
- * Use at() instead of integer index access.
1533
- */
1534
- useAtIndex?: RuleFixConfiguration_for_Null;
1535
- /**
1536
- * Enforce using single if instead of nested if clauses.
1537
- */
1538
- useCollapsedIf?: RuleFixConfiguration_for_Null;
1539
- /**
1540
- * Enforce declaring components only within modules that export React Components exclusively.
1541
- */
1542
- useComponentExportOnlyModules?: RuleConfiguration_for_UseComponentExportOnlyModulesOptions;
1543
- /**
1544
- * This rule enforces consistent use of curly braces inside JSX attributes and JSX children.
1545
- */
1546
- useConsistentCurlyBraces?: RuleFixConfiguration_for_Null;
1547
- /**
1548
- * Require consistent accessibility modifiers on class properties and methods.
1549
- */
1550
- useConsistentMemberAccessibility?: RuleConfiguration_for_ConsistentMemberAccessibilityOptions;
1551
1439
  /**
1552
1440
  * Require the consistent declaration of object literals. Defaults to explicit definitions.
1553
1441
  */
1554
1442
  useConsistentObjectDefinition?: RuleFixConfiguration_for_UseConsistentObjectDefinitionOptions;
1555
1443
  /**
1556
- * Require specifying the reason argument when using @deprecated directive
1444
+ * Require switch-case statements to be exhaustive.
1557
1445
  */
1558
- useDeprecatedReason?: RuleConfiguration_for_Null;
1446
+ useExhaustiveSwitchCases?: RuleFixConfiguration_for_Null;
1559
1447
  /**
1560
1448
  * Enforce types in functions, methods, variables, and parameters.
1561
1449
  */
@@ -1568,18 +1456,10 @@ interface Nursery {
1568
1456
  * Enforce using Solid's \<For /> component for mapping an array to JSX elements.
1569
1457
  */
1570
1458
  useForComponent?: RuleConfiguration_for_Null;
1571
- /**
1572
- * Enforces the use of a recommended display strategy with Google Fonts.
1573
- */
1574
- useGoogleFontDisplay?: RuleConfiguration_for_Null;
1575
1459
  /**
1576
1460
  * Ensure the preconnect attribute is used when using Google Fonts.
1577
1461
  */
1578
1462
  useGoogleFontPreconnect?: RuleFixConfiguration_for_Null;
1579
- /**
1580
- * Require for-in loops to include an if statement.
1581
- */
1582
- useGuardForIn?: RuleConfiguration_for_Null;
1583
1463
  /**
1584
1464
  * Enforce consistent return values in iterable callbacks.
1585
1465
  */
@@ -1601,25 +1481,17 @@ interface Nursery {
1601
1481
  */
1602
1482
  useParseIntRadix?: RuleFixConfiguration_for_Null;
1603
1483
  /**
1604
- * Enforce the sorting of CSS utility classes.
1484
+ * Enforce JSDoc comment lines to start with a single asterisk, except for the first one.
1605
1485
  */
1606
- useSortedClasses?: RuleFixConfiguration_for_UtilityClassSortingOptions;
1486
+ useSingleJsDocAsterisk?: RuleFixConfiguration_for_Null;
1607
1487
  /**
1608
- * Enforce the use of the directive "use strict" in script files.
1488
+ * Enforce the sorting of CSS utility classes.
1609
1489
  */
1610
- useStrictMode?: RuleFixConfiguration_for_Null;
1490
+ useSortedClasses?: RuleFixConfiguration_for_UtilityClassSortingOptions;
1611
1491
  /**
1612
1492
  * Require a description parameter for the Symbol().
1613
1493
  */
1614
1494
  useSymbolDescription?: RuleConfiguration_for_Null;
1615
- /**
1616
- * Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().
1617
- */
1618
- useTrimStartEnd?: RuleFixConfiguration_for_Null;
1619
- /**
1620
- * Use valid values for the autocomplete attribute on input elements.
1621
- */
1622
- useValidAutocomplete?: RuleConfiguration_for_UseValidAutocompleteOptions;
1623
1495
  }
1624
1496
  interface Performance {
1625
1497
  /**
@@ -1634,6 +1506,14 @@ interface Performance {
1634
1506
  * Disallow the use of the delete operator.
1635
1507
  */
1636
1508
  noDelete?: RuleFixConfiguration_for_Null;
1509
+ /**
1510
+ * Disallow accessing namespace imports dynamically.
1511
+ */
1512
+ noDynamicNamespaceImportAccess?: RuleConfiguration_for_Null;
1513
+ /**
1514
+ * Prevent usage of \<img> element in a Next.js project.
1515
+ */
1516
+ noImgElement?: RuleConfiguration_for_Null;
1637
1517
  /**
1638
1518
  * Avoid re-export all.
1639
1519
  */
@@ -1678,14 +1558,34 @@ interface Style {
1678
1558
  * Disallow comma operator.
1679
1559
  */
1680
1560
  noCommaOperator?: RuleConfiguration_for_Null;
1561
+ /**
1562
+ * Disallow use of CommonJs module system in favor of ESM style imports.
1563
+ */
1564
+ noCommonJs?: RuleConfiguration_for_Null;
1681
1565
  /**
1682
1566
  * Disallow default exports.
1683
1567
  */
1684
1568
  noDefaultExport?: RuleConfiguration_for_Null;
1569
+ /**
1570
+ * Disallow a lower specificity selector from coming after a higher specificity selector.
1571
+ */
1572
+ noDescendingSpecificity?: RuleConfiguration_for_Null;
1685
1573
  /**
1686
1574
  * Disallow using a callback in asynchronous tests and hooks.
1687
1575
  */
1688
1576
  noDoneCallback?: RuleConfiguration_for_Null;
1577
+ /**
1578
+ * Disallow TypeScript enum.
1579
+ */
1580
+ noEnum?: RuleConfiguration_for_Null;
1581
+ /**
1582
+ * Disallow exporting an imported variable.
1583
+ */
1584
+ noExportedImports?: RuleConfiguration_for_Null;
1585
+ /**
1586
+ * Prevent usage of \<head> element in a Next.js project.
1587
+ */
1588
+ noHeadElement?: RuleConfiguration_for_Null;
1689
1589
  /**
1690
1590
  * Disallow implicit true values on JSX boolean attributes
1691
1591
  */
@@ -1706,6 +1606,10 @@ interface Style {
1706
1606
  * Disallow negation in the condition of an if statement if it has an else clause.
1707
1607
  */
1708
1608
  noNegationElse?: RuleFixConfiguration_for_Null;
1609
+ /**
1610
+ * Disallow nested ternary expressions.
1611
+ */
1612
+ noNestedTernary?: RuleConfiguration_for_Null;
1709
1613
  /**
1710
1614
  * Disallow non-null assertions using the ! postfix operator.
1711
1615
  */
@@ -1718,14 +1622,30 @@ interface Style {
1718
1622
  * Disallow the use of parameter properties in class constructors.
1719
1623
  */
1720
1624
  noParameterProperties?: RuleConfiguration_for_Null;
1625
+ /**
1626
+ * Disallow the use of process.env.
1627
+ */
1628
+ noProcessEnv?: RuleConfiguration_for_Null;
1721
1629
  /**
1722
1630
  * This rule allows you to specify global variable names that you don’t want to use in your application.
1723
1631
  */
1724
1632
  noRestrictedGlobals?: RuleConfiguration_for_RestrictedGlobalsOptions;
1633
+ /**
1634
+ * Disallow specified modules when loaded by import or require.
1635
+ */
1636
+ noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions;
1637
+ /**
1638
+ * Disallow user defined types.
1639
+ */
1640
+ noRestrictedTypes?: RuleFixConfiguration_for_NoRestrictedTypesOptions;
1725
1641
  /**
1726
1642
  * Disallow the use of constants which its value is the upper-case version of its name.
1727
1643
  */
1728
1644
  noShoutyConstants?: RuleFixConfiguration_for_Null;
1645
+ /**
1646
+ * Enforce the use of String.slice() over String.substr() and String.substring().
1647
+ */
1648
+ noSubstr?: RuleFixConfiguration_for_Null;
1729
1649
  /**
1730
1650
  * Disallow template literals if interpolation and special-character handling are not needed
1731
1651
  */
@@ -1734,6 +1654,10 @@ interface Style {
1734
1654
  * Disallow else block when the if block breaks early.
1735
1655
  */
1736
1656
  noUselessElse?: RuleFixConfiguration_for_Null;
1657
+ /**
1658
+ * Disallow use of @value rule in css modules.
1659
+ */
1660
+ noValueAtRule?: RuleConfiguration_for_Null;
1737
1661
  /**
1738
1662
  * Disallow the use of yoda expressions.
1739
1663
  */
@@ -1746,6 +1670,10 @@ interface Style {
1746
1670
  * Enforce the use of as const over literal type and type annotation.
1747
1671
  */
1748
1672
  useAsConstAssertion?: RuleFixConfiguration_for_Null;
1673
+ /**
1674
+ * Use at() instead of integer index access.
1675
+ */
1676
+ useAtIndex?: RuleFixConfiguration_for_Null;
1749
1677
  /**
1750
1678
  * Requires following curly brace conventions.
1751
1679
  */
@@ -1754,6 +1682,14 @@ interface Style {
1754
1682
  * Enforce using else if instead of nested if in else clauses.
1755
1683
  */
1756
1684
  useCollapsedElseIf?: RuleFixConfiguration_for_Null;
1685
+ /**
1686
+ * Enforce using single if instead of nested if clauses.
1687
+ */
1688
+ useCollapsedIf?: RuleFixConfiguration_for_Null;
1689
+ /**
1690
+ * Enforce declaring components only within modules that export React Components exclusively.
1691
+ */
1692
+ useComponentExportOnlyModules?: RuleConfiguration_for_UseComponentExportOnlyModulesOptions;
1757
1693
  /**
1758
1694
  * Require consistently using either T\[] or Array\<T>
1759
1695
  */
@@ -1762,6 +1698,14 @@ interface Style {
1762
1698
  * Enforce the use of new for all builtins, except String, Number and Boolean.
1763
1699
  */
1764
1700
  useConsistentBuiltinInstantiation?: RuleFixConfiguration_for_Null;
1701
+ /**
1702
+ * This rule enforces consistent use of curly braces inside JSX attributes and JSX children.
1703
+ */
1704
+ useConsistentCurlyBraces?: RuleFixConfiguration_for_Null;
1705
+ /**
1706
+ * Require consistent accessibility modifiers on class properties and methods.
1707
+ */
1708
+ useConsistentMemberAccessibility?: RuleConfiguration_for_ConsistentMemberAccessibilityOptions;
1765
1709
  /**
1766
1710
  * Require const declarations for variables that are only assigned once.
1767
1711
  */
@@ -1774,6 +1718,10 @@ interface Style {
1774
1718
  * Require the default clause in switch statements.
1775
1719
  */
1776
1720
  useDefaultSwitchClause?: RuleConfiguration_for_Null;
1721
+ /**
1722
+ * Require specifying the reason argument when using @deprecated directive
1723
+ */
1724
+ useDeprecatedReason?: RuleConfiguration_for_Null;
1777
1725
  /**
1778
1726
  * Require that each enum member value be explicitly initialized.
1779
1727
  */
@@ -1831,13 +1779,9 @@ interface Style {
1831
1779
  */
1832
1780
  useNumericLiterals?: RuleFixConfiguration_for_Null;
1833
1781
  /**
1834
- * Prevent extra closing tags for components without children
1782
+ * Prevent extra closing tags for components without children.
1835
1783
  */
1836
1784
  useSelfClosingElements?: RuleFixConfiguration_for_UseSelfClosingElementsOptions;
1837
- /**
1838
- * When expressing array types, this rule promotes the usage of T\[] shorthand instead of Array\<T>.
1839
- */
1840
- useShorthandArrayType?: RuleFixConfiguration_for_Null;
1841
1785
  /**
1842
1786
  * Require assignment operator shorthand where possible.
1843
1787
  */
@@ -1846,10 +1790,6 @@ interface Style {
1846
1790
  * Enforce using function types instead of object type with call signatures.
1847
1791
  */
1848
1792
  useShorthandFunctionType?: RuleFixConfiguration_for_Null;
1849
- /**
1850
- * Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.
1851
- */
1852
- useSingleCaseStatement?: RuleFixConfiguration_for_Null;
1853
1793
  /**
1854
1794
  * Disallow multiple variable declarations in the same variable statement
1855
1795
  */
@@ -1866,6 +1806,10 @@ interface Style {
1866
1806
  * Disallow throwing non-Error values.
1867
1807
  */
1868
1808
  useThrowOnlyError?: RuleConfiguration_for_Null;
1809
+ /**
1810
+ * Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().
1811
+ */
1812
+ useTrimStartEnd?: RuleFixConfiguration_for_Null;
1869
1813
  }
1870
1814
  interface Suspicious {
1871
1815
  /**
@@ -1924,6 +1868,14 @@ interface Suspicious {
1924
1868
  * Disallow the use of debugger
1925
1869
  */
1926
1870
  noDebugger?: RuleFixConfiguration_for_Null;
1871
+ /**
1872
+ * Disallow direct assignments to document.cookie.
1873
+ */
1874
+ noDocumentCookie?: RuleConfiguration_for_Null;
1875
+ /**
1876
+ * Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
1877
+ */
1878
+ noDocumentImportInPage?: RuleConfiguration_for_Null;
1927
1879
  /**
1928
1880
  * Require the use of === and !==.
1929
1881
  */
@@ -1940,6 +1892,18 @@ interface Suspicious {
1940
1892
  * Disallow duplicate class members.
1941
1893
  */
1942
1894
  noDuplicateClassMembers?: RuleConfiguration_for_Null;
1895
+ /**
1896
+ * Disallow duplicate custom properties within declaration blocks.
1897
+ */
1898
+ noDuplicateCustomProperties?: RuleConfiguration_for_Null;
1899
+ /**
1900
+ * Disallow duplicate conditions in if-else-if chains
1901
+ */
1902
+ noDuplicateElseIf?: RuleConfiguration_for_Null;
1903
+ /**
1904
+ * No duplicated fields in GraphQL operations.
1905
+ */
1906
+ noDuplicateFields?: RuleConfiguration_for_Null;
1943
1907
  /**
1944
1908
  * Disallow duplicate names within font families.
1945
1909
  */
@@ -1956,6 +1920,10 @@ interface Suspicious {
1956
1920
  * Disallow duplicate function parameter name.
1957
1921
  */
1958
1922
  noDuplicateParameters?: RuleConfiguration_for_Null;
1923
+ /**
1924
+ * Disallow duplicate properties within declaration blocks.
1925
+ */
1926
+ noDuplicateProperties?: RuleConfiguration_for_Null;
1959
1927
  /**
1960
1928
  * Disallow duplicate selectors within keyframe blocks.
1961
1929
  */
@@ -2016,6 +1984,10 @@ interface Suspicious {
2016
1984
  * Use Number.isNaN instead of global isNaN.
2017
1985
  */
2018
1986
  noGlobalIsNan?: RuleFixConfiguration_for_Null;
1987
+ /**
1988
+ * Prevent using the next/head module in pages/_document.js on Next.js projects.
1989
+ */
1990
+ noHeadImportInDocument?: RuleConfiguration_for_Null;
2019
1991
  /**
2020
1992
  * Disallow use of implicit any type on variable declarations.
2021
1993
  */
@@ -2028,6 +2000,10 @@ interface Suspicious {
2028
2000
  * Disallow invalid !important within keyframe declarations
2029
2001
  */
2030
2002
  noImportantInKeyframe?: RuleConfiguration_for_Null;
2003
+ /**
2004
+ * Disallows the use of irregular whitespace characters.
2005
+ */
2006
+ noIrregularWhitespace?: RuleConfiguration_for_Null;
2031
2007
  /**
2032
2008
  * Disallow labels that share a name with a variable
2033
2009
  */
@@ -2048,6 +2024,10 @@ interface Suspicious {
2048
2024
  * Disallow shorthand assign when variable appears on both sides.
2049
2025
  */
2050
2026
  noMisrefactoredShorthandAssign?: RuleFixConfiguration_for_Null;
2027
+ /**
2028
+ * Disallow octal escape sequences in string literals
2029
+ */
2030
+ noOctalEscape?: RuleFixConfiguration_for_Null;
2051
2031
  /**
2052
2032
  * Disallow direct use of Object.prototype builtins.
2053
2033
  */
@@ -2088,6 +2068,10 @@ interface Suspicious {
2088
2068
  * It detects possible "wrong" semicolons inside JSX elements.
2089
2069
  */
2090
2070
  noSuspiciousSemicolonInJsx?: RuleConfiguration_for_Null;
2071
+ /**
2072
+ * Disallow template literal placeholder syntax in regular strings.
2073
+ */
2074
+ noTemplateCurlyInString?: RuleConfiguration_for_Null;
2091
2075
  /**
2092
2076
  * Disallow then property.
2093
2077
  */
@@ -2108,6 +2092,10 @@ interface Suspicious {
2108
2092
  * It enables the recommended rules for this group
2109
2093
  */
2110
2094
  recommended?: boolean;
2095
+ /**
2096
+ * Disallow the use of overload signatures that are not next to each other.
2097
+ */
2098
+ useAdjacentOverloadSignatures?: RuleConfiguration_for_Null;
2111
2099
  /**
2112
2100
  * Ensure async functions utilize await.
2113
2101
  */
@@ -2124,6 +2112,14 @@ interface Suspicious {
2124
2112
  * Enforce get methods to always return a value.
2125
2113
  */
2126
2114
  useGetterReturn?: RuleConfiguration_for_Null;
2115
+ /**
2116
+ * Enforces the use of a recommended display strategy with Google Fonts.
2117
+ */
2118
+ useGoogleFontDisplay?: RuleConfiguration_for_Null;
2119
+ /**
2120
+ * Require for-in loops to include an if statement.
2121
+ */
2122
+ useGuardForIn?: RuleConfiguration_for_Null;
2127
2123
  /**
2128
2124
  * Use Array.isArray() instead of instanceof Array.
2129
2125
  */
@@ -2136,6 +2132,10 @@ interface Suspicious {
2136
2132
  * Enforce using the digits argument with Number#toFixed().
2137
2133
  */
2138
2134
  useNumberToFixedDigitsArgument?: RuleFixConfiguration_for_Null;
2135
+ /**
2136
+ * Enforce the use of the directive "use strict" in script files.
2137
+ */
2138
+ useStrictMode?: RuleFixConfiguration_for_Null;
2139
2139
  /**
2140
2140
  * This rule checks that the result of a typeof expression is compared to a valid value.
2141
2141
  */
@@ -2174,6 +2174,9 @@ type RuleConfiguration_for_Null =
2174
2174
  type RuleFixConfiguration_for_ValidAriaRoleOptions =
2175
2175
  | RulePlainConfiguration
2176
2176
  | RuleWithFixOptions_for_ValidAriaRoleOptions;
2177
+ type RuleConfiguration_for_UseValidAutocompleteOptions =
2178
+ | RulePlainConfiguration
2179
+ | RuleWithOptions_for_UseValidAutocompleteOptions;
2177
2180
  type RuleConfiguration_for_ComplexityOptions =
2178
2181
  | RulePlainConfiguration
2179
2182
  | RuleWithOptions_for_ComplexityOptions;
@@ -2201,45 +2204,45 @@ type RuleConfiguration_for_DeprecatedHooksOptions =
2201
2204
  type RuleFixConfiguration_for_UseImportExtensionsOptions =
2202
2205
  | RulePlainConfiguration
2203
2206
  | RuleWithFixOptions_for_UseImportExtensionsOptions;
2207
+ type RuleConfiguration_for_UseJsxKeyInIterableOptions =
2208
+ | RulePlainConfiguration
2209
+ | RuleWithOptions_for_UseJsxKeyInIterableOptions;
2204
2210
  type RuleConfiguration_for_NoBitwiseOperatorsOptions =
2205
2211
  | RulePlainConfiguration
2206
2212
  | RuleWithOptions_for_NoBitwiseOperatorsOptions;
2207
2213
  type RuleConfiguration_for_NoRestrictedElementsOptions =
2208
2214
  | RulePlainConfiguration
2209
2215
  | RuleWithOptions_for_NoRestrictedElementsOptions;
2210
- type RuleConfiguration_for_RestrictedImportsOptions =
2211
- | RulePlainConfiguration
2212
- | RuleWithOptions_for_RestrictedImportsOptions;
2213
- type RuleFixConfiguration_for_NoRestrictedTypesOptions =
2214
- | RulePlainConfiguration
2215
- | RuleWithFixOptions_for_NoRestrictedTypesOptions;
2216
2216
  type RuleConfiguration_for_NoSecretsOptions =
2217
2217
  | RulePlainConfiguration
2218
2218
  | RuleWithOptions_for_NoSecretsOptions;
2219
- type RuleConfiguration_for_UseComponentExportOnlyModulesOptions =
2220
- | RulePlainConfiguration
2221
- | RuleWithOptions_for_UseComponentExportOnlyModulesOptions;
2222
- type RuleConfiguration_for_ConsistentMemberAccessibilityOptions =
2223
- | RulePlainConfiguration
2224
- | RuleWithOptions_for_ConsistentMemberAccessibilityOptions;
2225
2219
  type RuleFixConfiguration_for_UseConsistentObjectDefinitionOptions =
2226
2220
  | RulePlainConfiguration
2227
2221
  | RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions;
2228
2222
  type RuleFixConfiguration_for_UtilityClassSortingOptions =
2229
2223
  | RulePlainConfiguration
2230
2224
  | RuleWithFixOptions_for_UtilityClassSortingOptions;
2231
- type RuleConfiguration_for_UseValidAutocompleteOptions =
2232
- | RulePlainConfiguration
2233
- | RuleWithOptions_for_UseValidAutocompleteOptions;
2234
2225
  type RuleFixConfiguration_for_NoBlankTargetOptions =
2235
2226
  | RulePlainConfiguration
2236
2227
  | RuleWithFixOptions_for_NoBlankTargetOptions;
2237
2228
  type RuleConfiguration_for_RestrictedGlobalsOptions =
2238
2229
  | RulePlainConfiguration
2239
2230
  | RuleWithOptions_for_RestrictedGlobalsOptions;
2231
+ type RuleConfiguration_for_RestrictedImportsOptions =
2232
+ | RulePlainConfiguration
2233
+ | RuleWithOptions_for_RestrictedImportsOptions;
2234
+ type RuleFixConfiguration_for_NoRestrictedTypesOptions =
2235
+ | RulePlainConfiguration
2236
+ | RuleWithFixOptions_for_NoRestrictedTypesOptions;
2237
+ type RuleConfiguration_for_UseComponentExportOnlyModulesOptions =
2238
+ | RulePlainConfiguration
2239
+ | RuleWithOptions_for_UseComponentExportOnlyModulesOptions;
2240
2240
  type RuleFixConfiguration_for_ConsistentArrayTypeOptions =
2241
2241
  | RulePlainConfiguration
2242
2242
  | RuleWithFixOptions_for_ConsistentArrayTypeOptions;
2243
+ type RuleConfiguration_for_ConsistentMemberAccessibilityOptions =
2244
+ | RulePlainConfiguration
2245
+ | RuleWithOptions_for_ConsistentMemberAccessibilityOptions;
2243
2246
  type RuleConfiguration_for_FilenamingConventionOptions =
2244
2247
  | RulePlainConfiguration
2245
2248
  | RuleWithOptions_for_FilenamingConventionOptions;
@@ -2313,6 +2316,16 @@ interface RuleWithFixOptions_for_ValidAriaRoleOptions {
2313
2316
  */
2314
2317
  options: ValidAriaRoleOptions;
2315
2318
  }
2319
+ interface RuleWithOptions_for_UseValidAutocompleteOptions {
2320
+ /**
2321
+ * The severity of the emitted diagnostics by the rule
2322
+ */
2323
+ level: RulePlainConfiguration;
2324
+ /**
2325
+ * Rule's options
2326
+ */
2327
+ options: UseValidAutocompleteOptions;
2328
+ }
2316
2329
  interface RuleWithOptions_for_ComplexityOptions {
2317
2330
  /**
2318
2331
  * The severity of the emitted diagnostics by the rule
@@ -2415,17 +2428,7 @@ interface RuleWithFixOptions_for_UseImportExtensionsOptions {
2415
2428
  */
2416
2429
  options: UseImportExtensionsOptions;
2417
2430
  }
2418
- interface RuleWithOptions_for_NoBitwiseOperatorsOptions {
2419
- /**
2420
- * The severity of the emitted diagnostics by the rule
2421
- */
2422
- level: RulePlainConfiguration;
2423
- /**
2424
- * Rule's options
2425
- */
2426
- options: NoBitwiseOperatorsOptions;
2427
- }
2428
- interface RuleWithOptions_for_NoRestrictedElementsOptions {
2431
+ interface RuleWithOptions_for_UseJsxKeyInIterableOptions {
2429
2432
  /**
2430
2433
  * The severity of the emitted diagnostics by the rule
2431
2434
  */
@@ -2433,9 +2436,9 @@ interface RuleWithOptions_for_NoRestrictedElementsOptions {
2433
2436
  /**
2434
2437
  * Rule's options
2435
2438
  */
2436
- options: NoRestrictedElementsOptions;
2439
+ options: UseJsxKeyInIterableOptions;
2437
2440
  }
2438
- interface RuleWithOptions_for_RestrictedImportsOptions {
2441
+ interface RuleWithOptions_for_NoBitwiseOperatorsOptions {
2439
2442
  /**
2440
2443
  * The severity of the emitted diagnostics by the rule
2441
2444
  */
@@ -2443,13 +2446,9 @@ interface RuleWithOptions_for_RestrictedImportsOptions {
2443
2446
  /**
2444
2447
  * Rule's options
2445
2448
  */
2446
- options: RestrictedImportsOptions;
2449
+ options: NoBitwiseOperatorsOptions;
2447
2450
  }
2448
- interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
2449
- /**
2450
- * The kind of the code actions emitted by the rule
2451
- */
2452
- fix?: FixKind;
2451
+ interface RuleWithOptions_for_NoRestrictedElementsOptions {
2453
2452
  /**
2454
2453
  * The severity of the emitted diagnostics by the rule
2455
2454
  */
@@ -2457,7 +2456,7 @@ interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
2457
2456
  /**
2458
2457
  * Rule's options
2459
2458
  */
2460
- options: NoRestrictedTypesOptions;
2459
+ options: NoRestrictedElementsOptions;
2461
2460
  }
2462
2461
  interface RuleWithOptions_for_NoSecretsOptions {
2463
2462
  /**
@@ -2469,7 +2468,11 @@ interface RuleWithOptions_for_NoSecretsOptions {
2469
2468
  */
2470
2469
  options: NoSecretsOptions;
2471
2470
  }
2472
- interface RuleWithOptions_for_UseComponentExportOnlyModulesOptions {
2471
+ interface RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions {
2472
+ /**
2473
+ * The kind of the code actions emitted by the rule
2474
+ */
2475
+ fix?: FixKind;
2473
2476
  /**
2474
2477
  * The severity of the emitted diagnostics by the rule
2475
2478
  */
@@ -2477,9 +2480,13 @@ interface RuleWithOptions_for_UseComponentExportOnlyModulesOptions {
2477
2480
  /**
2478
2481
  * Rule's options
2479
2482
  */
2480
- options: UseComponentExportOnlyModulesOptions;
2483
+ options: UseConsistentObjectDefinitionOptions;
2481
2484
  }
2482
- interface RuleWithOptions_for_ConsistentMemberAccessibilityOptions {
2485
+ interface RuleWithFixOptions_for_UtilityClassSortingOptions {
2486
+ /**
2487
+ * The kind of the code actions emitted by the rule
2488
+ */
2489
+ fix?: FixKind;
2483
2490
  /**
2484
2491
  * The severity of the emitted diagnostics by the rule
2485
2492
  */
@@ -2487,9 +2494,9 @@ interface RuleWithOptions_for_ConsistentMemberAccessibilityOptions {
2487
2494
  /**
2488
2495
  * Rule's options
2489
2496
  */
2490
- options: ConsistentMemberAccessibilityOptions;
2497
+ options: UtilityClassSortingOptions;
2491
2498
  }
2492
- interface RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions {
2499
+ interface RuleWithFixOptions_for_NoBlankTargetOptions {
2493
2500
  /**
2494
2501
  * The kind of the code actions emitted by the rule
2495
2502
  */
@@ -2501,13 +2508,9 @@ interface RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions {
2501
2508
  /**
2502
2509
  * Rule's options
2503
2510
  */
2504
- options: UseConsistentObjectDefinitionOptions;
2511
+ options: NoBlankTargetOptions;
2505
2512
  }
2506
- interface RuleWithFixOptions_for_UtilityClassSortingOptions {
2507
- /**
2508
- * The kind of the code actions emitted by the rule
2509
- */
2510
- fix?: FixKind;
2513
+ interface RuleWithOptions_for_RestrictedGlobalsOptions {
2511
2514
  /**
2512
2515
  * The severity of the emitted diagnostics by the rule
2513
2516
  */
@@ -2515,9 +2518,9 @@ interface RuleWithFixOptions_for_UtilityClassSortingOptions {
2515
2518
  /**
2516
2519
  * Rule's options
2517
2520
  */
2518
- options: UtilityClassSortingOptions;
2521
+ options: RestrictedGlobalsOptions;
2519
2522
  }
2520
- interface RuleWithOptions_for_UseValidAutocompleteOptions {
2523
+ interface RuleWithOptions_for_RestrictedImportsOptions {
2521
2524
  /**
2522
2525
  * The severity of the emitted diagnostics by the rule
2523
2526
  */
@@ -2525,9 +2528,9 @@ interface RuleWithOptions_for_UseValidAutocompleteOptions {
2525
2528
  /**
2526
2529
  * Rule's options
2527
2530
  */
2528
- options: UseValidAutocompleteOptions;
2531
+ options: RestrictedImportsOptions;
2529
2532
  }
2530
- interface RuleWithFixOptions_for_NoBlankTargetOptions {
2533
+ interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
2531
2534
  /**
2532
2535
  * The kind of the code actions emitted by the rule
2533
2536
  */
@@ -2539,9 +2542,9 @@ interface RuleWithFixOptions_for_NoBlankTargetOptions {
2539
2542
  /**
2540
2543
  * Rule's options
2541
2544
  */
2542
- options: NoBlankTargetOptions;
2545
+ options: NoRestrictedTypesOptions;
2543
2546
  }
2544
- interface RuleWithOptions_for_RestrictedGlobalsOptions {
2547
+ interface RuleWithOptions_for_UseComponentExportOnlyModulesOptions {
2545
2548
  /**
2546
2549
  * The severity of the emitted diagnostics by the rule
2547
2550
  */
@@ -2549,7 +2552,7 @@ interface RuleWithOptions_for_RestrictedGlobalsOptions {
2549
2552
  /**
2550
2553
  * Rule's options
2551
2554
  */
2552
- options: RestrictedGlobalsOptions;
2555
+ options: UseComponentExportOnlyModulesOptions;
2553
2556
  }
2554
2557
  interface RuleWithFixOptions_for_ConsistentArrayTypeOptions {
2555
2558
  /**
@@ -2565,6 +2568,16 @@ interface RuleWithFixOptions_for_ConsistentArrayTypeOptions {
2565
2568
  */
2566
2569
  options: ConsistentArrayTypeOptions;
2567
2570
  }
2571
+ interface RuleWithOptions_for_ConsistentMemberAccessibilityOptions {
2572
+ /**
2573
+ * The severity of the emitted diagnostics by the rule
2574
+ */
2575
+ level: RulePlainConfiguration;
2576
+ /**
2577
+ * Rule's options
2578
+ */
2579
+ options: ConsistentMemberAccessibilityOptions;
2580
+ }
2568
2581
  interface RuleWithOptions_for_FilenamingConventionOptions {
2569
2582
  /**
2570
2583
  * The severity of the emitted diagnostics by the rule
@@ -2675,6 +2688,12 @@ interface ValidAriaRoleOptions {
2675
2688
  allowInvalidRoles?: string[];
2676
2689
  ignoreNonDom?: boolean;
2677
2690
  }
2691
+ interface UseValidAutocompleteOptions {
2692
+ /**
2693
+ * `input` like custom components that should be checked.
2694
+ */
2695
+ inputComponents?: string[];
2696
+ }
2678
2697
  interface ComplexityOptions {
2679
2698
  /**
2680
2699
  * The maximum complexity score that we allow. Anything higher is considered excessive.
@@ -2742,6 +2761,12 @@ interface UseImportExtensionsOptions {
2742
2761
  */
2743
2762
  forceJsExtensions?: boolean;
2744
2763
  }
2764
+ interface UseJsxKeyInIterableOptions {
2765
+ /**
2766
+ * Set to `true` to check shorthand fragments (`<></>`)
2767
+ */
2768
+ checkShorthandFragments?: boolean;
2769
+ }
2745
2770
  interface NoBitwiseOperatorsOptions {
2746
2771
  /**
2747
2772
  * Allows a list of bitwise operators to be used as exceptions.
@@ -2754,34 +2779,12 @@ interface NoRestrictedElementsOptions {
2754
2779
  */
2755
2780
  elements: CustomRestrictedElements;
2756
2781
  }
2757
- interface RestrictedImportsOptions {
2758
- /**
2759
- * A list of import paths that should trigger the rule.
2760
- */
2761
- paths: Record<string, CustomRestrictedImport>;
2762
- }
2763
- interface NoRestrictedTypesOptions {
2764
- types?: Record<string, CustomRestrictedType>;
2765
- }
2766
2782
  interface NoSecretsOptions {
2767
2783
  /**
2768
2784
  * Set entropy threshold (default is 41).
2769
2785
  */
2770
2786
  entropyThreshold?: number;
2771
2787
  }
2772
- interface UseComponentExportOnlyModulesOptions {
2773
- /**
2774
- * Allows the export of constants. This option is for environments that support it, such as [Vite](https://vitejs.dev/)
2775
- */
2776
- allowConstantExport?: boolean;
2777
- /**
2778
- * A list of names that can be additionally exported from the module This option is for exports that do not hinder [React Fast Refresh](https://github.com/facebook/react/tree/main/packages/react-refresh), such as [`meta` in Remix](https://remix.run/docs/en/main/route/meta)
2779
- */
2780
- allowExportNames: string[];
2781
- }
2782
- interface ConsistentMemberAccessibilityOptions {
2783
- accessibility?: Accessibility;
2784
- }
2785
2788
  interface UseConsistentObjectDefinitionOptions {
2786
2789
  /**
2787
2790
  * The preferred syntax to enforce.
@@ -2798,12 +2801,6 @@ interface UtilityClassSortingOptions {
2798
2801
  */
2799
2802
  functions?: string[];
2800
2803
  }
2801
- interface UseValidAutocompleteOptions {
2802
- /**
2803
- * `input` like custom components that should be checked.
2804
- */
2805
- inputComponents?: string[];
2806
- }
2807
2804
  interface NoBlankTargetOptions {
2808
2805
  /**
2809
2806
  * List of domains where `target="_blank"` is allowed without `rel="noopener"`.
@@ -2820,9 +2817,31 @@ interface RestrictedGlobalsOptions {
2820
2817
  */
2821
2818
  deniedGlobals: Record<string, string>;
2822
2819
  }
2820
+ interface RestrictedImportsOptions {
2821
+ /**
2822
+ * A list of import paths that should trigger the rule.
2823
+ */
2824
+ paths: Record<string, CustomRestrictedImport>;
2825
+ }
2826
+ interface NoRestrictedTypesOptions {
2827
+ types?: Record<string, CustomRestrictedType>;
2828
+ }
2829
+ interface UseComponentExportOnlyModulesOptions {
2830
+ /**
2831
+ * Allows the export of constants. This option is for environments that support it, such as [Vite](https://vitejs.dev/)
2832
+ */
2833
+ allowConstantExport?: boolean;
2834
+ /**
2835
+ * A list of names that can be additionally exported from the module This option is for exports that do not hinder [React Fast Refresh](https://github.com/facebook/react/tree/main/packages/react-refresh), such as [`meta` in Remix](https://remix.run/docs/en/main/route/meta)
2836
+ */
2837
+ allowExportNames: string[];
2838
+ }
2823
2839
  interface ConsistentArrayTypeOptions {
2824
2840
  syntax?: ConsistentArrayType;
2825
2841
  }
2842
+ interface ConsistentMemberAccessibilityOptions {
2843
+ accessibility?: Accessibility;
2844
+ }
2826
2845
  interface FilenamingConventionOptions {
2827
2846
  /**
2828
2847
  * Allowed cases for file names.
@@ -2911,11 +2930,11 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
2911
2930
  stableResult?: StableHookResult;
2912
2931
  }
2913
2932
  type CustomRestrictedElements = Record<string, string>;
2933
+ type ObjectPropertySyntax = "explicit" | "shorthand";
2914
2934
  type CustomRestrictedImport = string | CustomRestrictedImportOptions;
2915
2935
  type CustomRestrictedType = string | CustomRestrictedTypeOptions;
2916
- type Accessibility = "noPublic" | "explicit" | "none";
2917
- type ObjectPropertySyntax = "explicit" | "shorthand";
2918
2936
  type ConsistentArrayType = "shorthand" | "generic";
2937
+ type Accessibility = "noPublic" | "explicit" | "none";
2919
2938
  type FilenameCases = FilenameCase[];
2920
2939
  type Regex = string;
2921
2940
  type Style2 = "auto" | "inlineType" | "separatedType";
@@ -2978,7 +2997,7 @@ interface ImportMatcher {
2978
2997
  source?: SourcesMatcher;
2979
2998
  type?: boolean;
2980
2999
  }
2981
- type SourceMatcher = PredefinedGroupMatcher | ImportSourceGlob;
3000
+ type SourceMatcher = NegatablePredefinedSourceMatcher | ImportSourceGlob;
2982
3001
  type Format = "camelCase" | "CONSTANT_CASE" | "PascalCase" | "snake_case";
2983
3002
  type Kind =
2984
3003
  | "class"
@@ -3022,7 +3041,21 @@ type Kind =
3022
3041
  type Modifiers = RestrictedModifier[];
3023
3042
  type Scope = "any" | "global";
3024
3043
  type SourcesMatcher = SourceMatcher | SourceMatcher[];
3025
- type PredefinedGroupMatcher = string;
3044
+ type NegatablePredefinedSourceMatcher =
3045
+ | ":ALIAS:"
3046
+ | ":BUN:"
3047
+ | ":NODE:"
3048
+ | ":PACKAGE:"
3049
+ | ":PACKAGE_WITH_PROTOCOL:"
3050
+ | ":PATH:"
3051
+ | ":URL:"
3052
+ | "!:ALIAS:"
3053
+ | "!:BUN:"
3054
+ | "!:NODE:"
3055
+ | "!:PACKAGE:"
3056
+ | "!:PACKAGE_WITH_PROTOCOL:"
3057
+ | "!:PATH:"
3058
+ | "!:URL:";
3026
3059
  type ImportSourceGlob = Glob;
3027
3060
  type RestrictedModifier =
3028
3061
  | "abstract"
@@ -3061,11 +3094,13 @@ type Category =
3061
3094
  | "lint/a11y/noPositiveTabindex"
3062
3095
  | "lint/a11y/noRedundantAlt"
3063
3096
  | "lint/a11y/noRedundantRoles"
3097
+ | "lint/a11y/noStaticElementInteractions"
3064
3098
  | "lint/a11y/noSvgWithoutTitle"
3065
3099
  | "lint/a11y/useAltText"
3066
3100
  | "lint/a11y/useAnchorContent"
3067
3101
  | "lint/a11y/useAriaActivedescendantWithTabindex"
3068
3102
  | "lint/a11y/useAriaPropsForRole"
3103
+ | "lint/a11y/useAriaPropsSupportedByRole"
3069
3104
  | "lint/a11y/useButtonType"
3070
3105
  | "lint/a11y/useFocusableInteractive"
3071
3106
  | "lint/a11y/useGenericFontNames"
@@ -3080,6 +3115,7 @@ type Category =
3080
3115
  | "lint/a11y/useValidAriaProps"
3081
3116
  | "lint/a11y/useValidAriaRole"
3082
3117
  | "lint/a11y/useValidAriaValues"
3118
+ | "lint/a11y/useValidAutocomplete"
3083
3119
  | "lint/a11y/useValidLang"
3084
3120
  | "lint/complexity/noAdjacentSpacesInRegex"
3085
3121
  | "lint/complexity/noBannedTypes"
@@ -3093,11 +3129,13 @@ type Category =
3093
3129
  | "lint/complexity/noUselessCatch"
3094
3130
  | "lint/complexity/noUselessConstructor"
3095
3131
  | "lint/complexity/noUselessEmptyExport"
3132
+ | "lint/complexity/noUselessEscapeInRegex"
3096
3133
  | "lint/complexity/noUselessFragments"
3097
3134
  | "lint/complexity/noUselessLabel"
3098
3135
  | "lint/complexity/noUselessLoneBlockStatements"
3099
3136
  | "lint/complexity/noUselessRename"
3100
3137
  | "lint/complexity/noUselessStringConcat"
3138
+ | "lint/complexity/noUselessStringRaw"
3101
3139
  | "lint/complexity/noUselessSwitchCase"
3102
3140
  | "lint/complexity/noUselessTernary"
3103
3141
  | "lint/complexity/noUselessThisAlias"
@@ -3131,6 +3169,7 @@ type Category =
3131
3169
  | "lint/correctness/noInvalidNewBuiltin"
3132
3170
  | "lint/correctness/noInvalidPositionAtImportRule"
3133
3171
  | "lint/correctness/noInvalidUseBeforeDeclaration"
3172
+ | "lint/correctness/noMissingVarFunction"
3134
3173
  | "lint/correctness/noNewSymbol"
3135
3174
  | "lint/correctness/noNodejsModules"
3136
3175
  | "lint/correctness/noNonoctalDecimalEscape"
@@ -3146,6 +3185,10 @@ type Category =
3146
3185
  | "lint/correctness/noUnknownFunction"
3147
3186
  | "lint/correctness/noUnknownMediaFeatureName"
3148
3187
  | "lint/correctness/noUnknownProperty"
3188
+ | "lint/correctness/noUnknownPseudoClass"
3189
+ | "lint/correctness/noUnknownPseudoClassSelector"
3190
+ | "lint/correctness/noUnknownPseudoElement"
3191
+ | "lint/correctness/noUnknownTypeSelector"
3149
3192
  | "lint/correctness/noUnknownUnit"
3150
3193
  | "lint/correctness/noUnmatchableAnbSelector"
3151
3194
  | "lint/correctness/noUnreachable"
@@ -3172,88 +3215,50 @@ type Category =
3172
3215
  | "lint/nursery/noAwaitInLoop"
3173
3216
  | "lint/nursery/noBitwiseOperators"
3174
3217
  | "lint/nursery/noColorInvalidHex"
3175
- | "lint/nursery/noCommonJs"
3176
3218
  | "lint/nursery/noConsole"
3177
3219
  | "lint/nursery/noConstantBinaryExpression"
3178
- | "lint/nursery/noDescendingSpecificity"
3179
3220
  | "lint/nursery/noDestructuredProps"
3180
- | "lint/nursery/noDocumentCookie"
3181
- | "lint/nursery/noDocumentImportInPage"
3182
3221
  | "lint/nursery/noDoneCallback"
3183
3222
  | "lint/nursery/noDuplicateAtImportRules"
3184
- | "lint/nursery/noDuplicateCustomProperties"
3185
- | "lint/nursery/noDuplicateElseIf"
3186
- | "lint/nursery/noDuplicateFields"
3187
- | "lint/nursery/noDuplicateProperties"
3188
- | "lint/nursery/noDynamicNamespaceImportAccess"
3189
- | "lint/nursery/noEnum"
3190
- | "lint/nursery/noExportedImports"
3191
3223
  | "lint/nursery/noFloatingPromises"
3192
3224
  | "lint/nursery/noGlobalDirnameFilename"
3193
- | "lint/nursery/noHeadElement"
3194
- | "lint/nursery/noHeadImportInDocument"
3195
- | "lint/nursery/noImgElement"
3196
3225
  | "lint/nursery/noImportCycles"
3197
3226
  | "lint/nursery/noImportantInKeyframe"
3198
3227
  | "lint/nursery/noImportantStyles"
3199
3228
  | "lint/nursery/noInvalidDirectionInLinearGradient"
3200
3229
  | "lint/nursery/noInvalidGridAreas"
3201
3230
  | "lint/nursery/noInvalidPositionAtImportRule"
3202
- | "lint/nursery/noIrregularWhitespace"
3203
3231
  | "lint/nursery/noMissingGenericFamilyKeyword"
3204
- | "lint/nursery/noMissingVarFunction"
3205
- | "lint/nursery/noNestedTernary"
3206
3232
  | "lint/nursery/noNoninteractiveElementInteractions"
3207
- | "lint/nursery/noOctalEscape"
3208
- | "lint/nursery/noProcessEnv"
3209
3233
  | "lint/nursery/noProcessGlobal"
3210
3234
  | "lint/nursery/noReactSpecificProps"
3211
3235
  | "lint/nursery/noRestrictedElements"
3212
- | "lint/nursery/noRestrictedImports"
3213
- | "lint/nursery/noRestrictedTypes"
3214
3236
  | "lint/nursery/noSecrets"
3237
+ | "lint/nursery/noShadow"
3215
3238
  | "lint/nursery/noShorthandPropertyOverrides"
3216
- | "lint/nursery/noStaticElementInteractions"
3217
- | "lint/nursery/noSubstr"
3218
- | "lint/nursery/noTemplateCurlyInString"
3219
3239
  | "lint/nursery/noTsIgnore"
3220
3240
  | "lint/nursery/noUndeclaredDependencies"
3221
3241
  | "lint/nursery/noUnknownAtRule"
3222
3242
  | "lint/nursery/noUnknownFunction"
3223
3243
  | "lint/nursery/noUnknownMediaFeatureName"
3224
3244
  | "lint/nursery/noUnknownProperty"
3225
- | "lint/nursery/noUnknownPseudoClass"
3226
- | "lint/nursery/noUnknownPseudoClassSelector"
3227
- | "lint/nursery/noUnknownPseudoElement"
3228
3245
  | "lint/nursery/noUnknownSelectorPseudoElement"
3229
- | "lint/nursery/noUnknownTypeSelector"
3230
3246
  | "lint/nursery/noUnknownUnit"
3231
3247
  | "lint/nursery/noUnmatchableAnbSelector"
3232
3248
  | "lint/nursery/noUnresolvedImports"
3233
3249
  | "lint/nursery/noUnusedFunctionParameters"
3234
3250
  | "lint/nursery/noUnwantedPolyfillio"
3235
- | "lint/nursery/noUselessEscapeInRegex"
3251
+ | "lint/nursery/noUselessBackrefInRegex"
3236
3252
  | "lint/nursery/noUselessEscapeInString"
3237
- | "lint/nursery/noUselessStringRaw"
3238
3253
  | "lint/nursery/noUselessUndefined"
3239
- | "lint/nursery/noValueAtRule"
3240
- | "lint/nursery/useAdjacentOverloadSignatures"
3241
- | "lint/nursery/useAriaPropsSupportedByRole"
3242
- | "lint/nursery/useAtIndex"
3243
3254
  | "lint/nursery/useBiomeSuppressionComment"
3244
- | "lint/nursery/useCollapsedIf"
3245
- | "lint/nursery/useComponentExportOnlyModules"
3246
- | "lint/nursery/useConsistentCurlyBraces"
3247
- | "lint/nursery/useConsistentMemberAccessibility"
3248
3255
  | "lint/nursery/useConsistentObjectDefinition"
3249
- | "lint/nursery/useDeprecatedReason"
3256
+ | "lint/nursery/useExhaustiveSwitchCases"
3250
3257
  | "lint/nursery/useExplicitFunctionReturnType"
3251
3258
  | "lint/nursery/useExplicitType"
3252
3259
  | "lint/nursery/useExportsLast"
3253
3260
  | "lint/nursery/useForComponent"
3254
- | "lint/nursery/useGoogleFontDisplay"
3255
3261
  | "lint/nursery/useGoogleFontPreconnect"
3256
- | "lint/nursery/useGuardForIn"
3257
3262
  | "lint/nursery/useImportRestrictions"
3258
3263
  | "lint/nursery/useIterableCallbackReturn"
3259
3264
  | "lint/nursery/useJsxCurlyBraceConvention"
@@ -3261,15 +3266,15 @@ type Category =
3261
3266
  | "lint/nursery/useNamingConvention"
3262
3267
  | "lint/nursery/useNumericSeparators"
3263
3268
  | "lint/nursery/useParseIntRadix"
3269
+ | "lint/nursery/useSingleJsDocAsterisk"
3264
3270
  | "lint/nursery/useSortedClasses"
3265
3271
  | "lint/nursery/useSortedProperties"
3266
- | "lint/nursery/useStrictMode"
3267
3272
  | "lint/nursery/useSymbolDescription"
3268
- | "lint/nursery/useTrimStartEnd"
3269
- | "lint/nursery/useValidAutocomplete"
3270
3273
  | "lint/performance/noAccumulatingSpread"
3271
3274
  | "lint/performance/noBarrelFile"
3272
3275
  | "lint/performance/noDelete"
3276
+ | "lint/performance/noDynamicNamespaceImportAccess"
3277
+ | "lint/performance/noImgElement"
3273
3278
  | "lint/performance/noReExportAll"
3274
3279
  | "lint/performance/useTopLevelRegex"
3275
3280
  | "lint/security/noBlankTarget"
@@ -3278,29 +3283,46 @@ type Category =
3278
3283
  | "lint/security/noGlobalEval"
3279
3284
  | "lint/style/noArguments"
3280
3285
  | "lint/style/noCommaOperator"
3286
+ | "lint/style/noCommonJs"
3281
3287
  | "lint/style/noDefaultExport"
3288
+ | "lint/style/noDescendingSpecificity"
3282
3289
  | "lint/style/noDoneCallback"
3290
+ | "lint/style/noEnum"
3291
+ | "lint/style/noExportedImports"
3292
+ | "lint/style/noHeadElement"
3283
3293
  | "lint/style/noImplicitBoolean"
3284
3294
  | "lint/style/noInferrableTypes"
3285
3295
  | "lint/style/noNamespace"
3286
3296
  | "lint/style/noNamespaceImport"
3287
3297
  | "lint/style/noNegationElse"
3298
+ | "lint/style/noNestedTernary"
3288
3299
  | "lint/style/noNonNullAssertion"
3289
3300
  | "lint/style/noParameterAssign"
3290
3301
  | "lint/style/noParameterProperties"
3302
+ | "lint/style/noProcessEnv"
3291
3303
  | "lint/style/noRestrictedGlobals"
3304
+ | "lint/style/noRestrictedImports"
3305
+ | "lint/style/noRestrictedTypes"
3292
3306
  | "lint/style/noShoutyConstants"
3307
+ | "lint/style/noSubstr"
3293
3308
  | "lint/style/noUnusedTemplateLiteral"
3294
3309
  | "lint/style/noUselessElse"
3310
+ | "lint/style/noValueAtRule"
3295
3311
  | "lint/style/noYodaExpression"
3296
3312
  | "lint/style/useAsConstAssertion"
3313
+ | "lint/style/useAtIndex"
3297
3314
  | "lint/style/useBlockStatements"
3298
3315
  | "lint/style/useCollapsedElseIf"
3316
+ | "lint/style/useCollapsedIf"
3317
+ | "lint/style/useComponentExportOnlyModules"
3299
3318
  | "lint/style/useConsistentArrayType"
3300
3319
  | "lint/style/useConsistentBuiltinInstantiation"
3320
+ | "lint/style/useConsistentCurlyBraces"
3321
+ | "lint/style/useConsistentMemberAccessibility"
3301
3322
  | "lint/style/useConst"
3302
3323
  | "lint/style/useDefaultParameterLast"
3303
3324
  | "lint/style/useDefaultSwitchClause"
3325
+ | "lint/style/useDeprecatedReason"
3304
3326
  | "lint/style/useEnumInitializers"
3305
3327
  | "lint/style/useExplicitLengthCheck"
3306
3328
  | "lint/style/useExponentiationOperator"
@@ -3324,6 +3346,7 @@ type Category =
3324
3346
  | "lint/style/useTemplate"
3325
3347
  | "lint/style/useThrowNewError"
3326
3348
  | "lint/style/useThrowOnlyError"
3349
+ | "lint/style/useTrimStartEnd"
3327
3350
  | "lint/suspicious/noApproximativeNumericConstant"
3328
3351
  | "lint/suspicious/noArrayIndexKey"
3329
3352
  | "lint/suspicious/noAssignInExpressions"
@@ -3338,14 +3361,20 @@ type Category =
3338
3361
  | "lint/suspicious/noConstEnum"
3339
3362
  | "lint/suspicious/noControlCharactersInRegex"
3340
3363
  | "lint/suspicious/noDebugger"
3364
+ | "lint/suspicious/noDocumentCookie"
3365
+ | "lint/suspicious/noDocumentImportInPage"
3341
3366
  | "lint/suspicious/noDoubleEquals"
3342
3367
  | "lint/suspicious/noDuplicateAtImportRules"
3343
3368
  | "lint/suspicious/noDuplicateCase"
3344
3369
  | "lint/suspicious/noDuplicateClassMembers"
3370
+ | "lint/suspicious/noDuplicateCustomProperties"
3371
+ | "lint/suspicious/noDuplicateElseIf"
3372
+ | "lint/suspicious/noDuplicateFields"
3345
3373
  | "lint/suspicious/noDuplicateFontNames"
3346
3374
  | "lint/suspicious/noDuplicateJsxProps"
3347
3375
  | "lint/suspicious/noDuplicateObjectKeys"
3348
3376
  | "lint/suspicious/noDuplicateParameters"
3377
+ | "lint/suspicious/noDuplicateProperties"
3349
3378
  | "lint/suspicious/noDuplicateSelectorsKeyframeBlock"
3350
3379
  | "lint/suspicious/noDuplicateTestHooks"
3351
3380
  | "lint/suspicious/noEmptyBlock"
@@ -3361,14 +3390,17 @@ type Category =
3361
3390
  | "lint/suspicious/noGlobalAssign"
3362
3391
  | "lint/suspicious/noGlobalIsFinite"
3363
3392
  | "lint/suspicious/noGlobalIsNan"
3393
+ | "lint/suspicious/noHeadImportInDocument"
3364
3394
  | "lint/suspicious/noImplicitAnyLet"
3365
3395
  | "lint/suspicious/noImportAssign"
3366
3396
  | "lint/suspicious/noImportantInKeyframe"
3397
+ | "lint/suspicious/noIrregularWhitespace"
3367
3398
  | "lint/suspicious/noLabelVar"
3368
3399
  | "lint/suspicious/noMisleadingCharacterClass"
3369
3400
  | "lint/suspicious/noMisleadingInstantiator"
3370
3401
  | "lint/suspicious/noMisplacedAssertion"
3371
3402
  | "lint/suspicious/noMisrefactoredShorthandAssign"
3403
+ | "lint/suspicious/noOctalEscape"
3372
3404
  | "lint/suspicious/noPrototypeBuiltins"
3373
3405
  | "lint/suspicious/noReactSpecificProps"
3374
3406
  | "lint/suspicious/noRedeclare"
@@ -3379,17 +3411,22 @@ type Category =
3379
3411
  | "lint/suspicious/noSkippedTests"
3380
3412
  | "lint/suspicious/noSparseArray"
3381
3413
  | "lint/suspicious/noSuspiciousSemicolonInJsx"
3414
+ | "lint/suspicious/noTemplateCurlyInString"
3382
3415
  | "lint/suspicious/noThenProperty"
3383
3416
  | "lint/suspicious/noUnsafeDeclarationMerging"
3384
3417
  | "lint/suspicious/noUnsafeNegation"
3385
3418
  | "lint/suspicious/noVar"
3419
+ | "lint/suspicious/useAdjacentOverloadSignatures"
3386
3420
  | "lint/suspicious/useAwait"
3387
3421
  | "lint/suspicious/useDefaultSwitchClauseLast"
3388
3422
  | "lint/suspicious/useErrorMessage"
3389
3423
  | "lint/suspicious/useGetterReturn"
3424
+ | "lint/suspicious/useGoogleFontDisplay"
3425
+ | "lint/suspicious/useGuardForIn"
3390
3426
  | "lint/suspicious/useIsArray"
3391
3427
  | "lint/suspicious/useNamespaceKeyword"
3392
3428
  | "lint/suspicious/useNumberToFixedDigitsArgument"
3429
+ | "lint/suspicious/useStrictMode"
3393
3430
  | "lint/suspicious/useValidTypeof"
3394
3431
  | "assist/source/useSortedKeys"
3395
3432
  | "assist/source/useSortedProperties"
@@ -3610,6 +3647,18 @@ interface GetFormatterIRParams {
3610
3647
  path: BiomePath;
3611
3648
  projectKey: ProjectKey;
3612
3649
  }
3650
+ interface GetTypeInfoParams {
3651
+ path: BiomePath;
3652
+ projectKey: ProjectKey;
3653
+ }
3654
+ interface GetRegisteredTypesParams {
3655
+ path: BiomePath;
3656
+ projectKey: ProjectKey;
3657
+ }
3658
+ interface GetSemanticModelParams {
3659
+ path: BiomePath;
3660
+ projectKey: ProjectKey;
3661
+ }
3613
3662
  interface PullDiagnosticsParams {
3614
3663
  categories: RuleCategories;
3615
3664
  /**
@@ -3808,6 +3857,9 @@ export class Workspace {
3808
3857
  getSyntaxTree(params: GetSyntaxTreeParams): GetSyntaxTreeResult;
3809
3858
  getControlFlowGraph(params: GetControlFlowGraphParams): string;
3810
3859
  getFormatterIr(params: GetFormatterIRParams): string;
3860
+ getTypeInfo(params: GetTypeInfoParams): string;
3861
+ getRegisteredTypes(params: GetRegisteredTypesParams): string;
3862
+ getSemanticModel(params: GetSemanticModelParams): string;
3811
3863
  changeFile(params: ChangeFileParams): void;
3812
3864
  closeFile(params: CloseFileParams): void;
3813
3865
  pullDiagnostics(params: PullDiagnosticsParams): PullDiagnosticsResult;