@biomejs/wasm-nodejs 2.0.0-beta.1 → 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
@@ -97,13 +97,13 @@ interface AssistConfiguration {
97
97
  */
98
98
  actions?: Actions;
99
99
  /**
100
- * Whether Biome should enable assist via LSP.
100
+ * Whether Biome should enable assist via LSP and CLI.
101
101
  */
102
102
  enabled?: Bool;
103
103
  /**
104
104
  * A list of glob patterns. Biome will include files/folders that will match these patterns.
105
105
  */
106
- includes?: Glob[];
106
+ includes?: NormalizedGlob[];
107
107
  }
108
108
  interface CssConfiguration {
109
109
  /**
@@ -135,7 +135,7 @@ interface FilesConfiguration {
135
135
  /**
136
136
  * A list of glob patterns. Biome will handle only those files/folders that will match these patterns.
137
137
  */
138
- includes?: Glob[];
138
+ includes?: NormalizedGlob[];
139
139
  /**
140
140
  * The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
141
141
  */
@@ -166,7 +166,7 @@ interface FormatterConfiguration {
166
166
  /**
167
167
  * A list of glob patterns. The formatter will include files/folders that will match these patterns.
168
168
  */
169
- includes?: Glob[];
169
+ includes?: NormalizedGlob[];
170
170
  /**
171
171
  * The indent style.
172
172
  */
@@ -283,7 +283,7 @@ interface LinterConfiguration {
283
283
  /**
284
284
  * A list of glob patterns. The analyzer will handle only those files/folders that will match these patterns.
285
285
  */
286
- includes?: Glob[];
286
+ includes?: NormalizedGlob[];
287
287
  /**
288
288
  * List of rules
289
289
  */
@@ -323,7 +323,7 @@ interface Actions {
323
323
  recommended?: boolean;
324
324
  source?: Source;
325
325
  }
326
- type Glob = string;
326
+ type NormalizedGlob = Glob;
327
327
  interface CssAssistConfiguration {
328
328
  /**
329
329
  * Control the assist for CSS files.
@@ -490,6 +490,10 @@ interface HtmlFormatterConfiguration {
490
490
  * What's the max width of a line applied to HTML (and its super languages) files. Defaults to 80.
491
491
  */
492
492
  lineWidth?: LineWidth;
493
+ /**
494
+ * Whether void elements should be self-closed. Defaults to never.
495
+ */
496
+ selfCloseVoidElements?: SelfCloseVoidElements;
493
497
  /**
494
498
  * Whether to account for whitespace sensitivity when formatting HTML (and its super languages). Defaults to "css".
495
499
  */
@@ -726,15 +730,17 @@ interface Source {
726
730
  */
727
731
  useSortedProperties?: RuleAssistConfiguration_for_Null;
728
732
  }
733
+ type Glob = string;
729
734
  type QuoteStyle = "double" | "single";
730
735
  type IndentScriptAndStyle = boolean;
736
+ type SelfCloseVoidElements = "never" | "always";
731
737
  type WhitespaceSensitivity = "css" | "strict" | "ignore";
732
738
  type ArrowParentheses = "always" | "asNeeded";
733
739
  type QuoteProperties = "asNeeded" | "preserve";
734
740
  type Semicolons = "always" | "asNeeded";
735
741
  type TrailingCommas = "all" | "es5" | "none";
736
742
  type TrailingCommas2 = "none" | "all";
737
- type RuleDomain = "react" | "test" | "solid" | "next";
743
+ type RuleDomain = "react" | "test" | "solid" | "next" | "project";
738
744
  type RuleDomainValue = "all" | "none" | "recommended";
739
745
  type SeverityOrGroup_for_A11y = GroupPlainConfiguration | A11y;
740
746
  type SeverityOrGroup_for_Complexity = GroupPlainConfiguration | Complexity;
@@ -836,10 +842,6 @@ interface A11y {
836
842
  * Enforce that autoFocus prop is not used on elements.
837
843
  */
838
844
  noAutofocus?: RuleFixConfiguration_for_Null;
839
- /**
840
- * Disallow target="_blank" attribute without rel="noreferrer"
841
- */
842
- noBlankTarget?: RuleFixConfiguration_for_AllowDomainOptions;
843
845
  /**
844
846
  * Enforces that no distracting elements are used.
845
847
  */
@@ -876,6 +878,10 @@ interface A11y {
876
878
  * Enforce explicit role property is not the same as implicit/default role property on an element.
877
879
  */
878
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;
879
885
  /**
880
886
  * Enforces the usage of the title element for the svg element.
881
887
  */
@@ -900,6 +906,10 @@ interface A11y {
900
906
  * Enforce that elements with ARIA roles must have all required ARIA attributes for that role.
901
907
  */
902
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;
903
913
  /**
904
914
  * Enforces the usage of the attribute type for the element button
905
915
  */
@@ -956,6 +966,10 @@ interface A11y {
956
966
  * Enforce that ARIA state and property values are valid.
957
967
  */
958
968
  useValidAriaValues?: RuleConfiguration_for_Null;
969
+ /**
970
+ * Use valid values for the autocomplete attribute on input elements.
971
+ */
972
+ useValidAutocomplete?: RuleConfiguration_for_UseValidAutocompleteOptions;
959
973
  /**
960
974
  * Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country.
961
975
  */
@@ -1010,6 +1024,10 @@ interface Complexity {
1010
1024
  * Disallow empty exports that don't change anything in a module file.
1011
1025
  */
1012
1026
  noUselessEmptyExport?: RuleFixConfiguration_for_Null;
1027
+ /**
1028
+ * Disallow unnecessary escape sequence in regular expression literals.
1029
+ */
1030
+ noUselessEscapeInRegex?: RuleFixConfiguration_for_Null;
1013
1031
  /**
1014
1032
  * Disallow unnecessary fragments
1015
1033
  */
@@ -1030,6 +1048,10 @@ interface Complexity {
1030
1048
  * Disallow unnecessary concatenation of string or template literals.
1031
1049
  */
1032
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;
1033
1055
  /**
1034
1056
  * Disallow useless case in switch statements.
1035
1057
  */
@@ -1087,7 +1109,7 @@ interface Complexity {
1087
1109
  */
1088
1110
  useRegexLiterals?: RuleFixConfiguration_for_Null;
1089
1111
  /**
1090
- * 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.
1091
1113
  */
1092
1114
  useSimpleNumberKeys?: RuleFixConfiguration_for_Null;
1093
1115
  /**
@@ -1156,10 +1178,6 @@ interface Correctness {
1156
1178
  * Disallows invalid named grid areas in CSS Grid Layouts.
1157
1179
  */
1158
1180
  noInvalidGridAreas?: RuleConfiguration_for_Null;
1159
- /**
1160
- * Disallow new operators with global non-constructor functions.
1161
- */
1162
- noInvalidNewBuiltin?: RuleFixConfiguration_for_Null;
1163
1181
  /**
1164
1182
  * Disallow the use of @import at-rules in invalid positions.
1165
1183
  */
@@ -1169,9 +1187,9 @@ interface Correctness {
1169
1187
  */
1170
1188
  noInvalidUseBeforeDeclaration?: RuleConfiguration_for_Null;
1171
1189
  /**
1172
- * Disallow new operators with the Symbol object.
1190
+ * Disallow missing var function for css variables.
1173
1191
  */
1174
- noNewSymbol?: RuleFixConfiguration_for_Null;
1192
+ noMissingVarFunction?: RuleConfiguration_for_Null;
1175
1193
  /**
1176
1194
  * Forbid the use of Node.js builtin modules.
1177
1195
  */
@@ -1185,7 +1203,7 @@ interface Correctness {
1185
1203
  */
1186
1204
  noPrecisionLoss?: RuleConfiguration_for_Null;
1187
1205
  /**
1188
- * Restricts imports of private exports.
1206
+ * Restrict imports of private exports.
1189
1207
  */
1190
1208
  noPrivateImports?: RuleConfiguration_for_NoPrivateImportsOptions;
1191
1209
  /**
@@ -1228,6 +1246,18 @@ interface Correctness {
1228
1246
  * Disallow unknown properties.
1229
1247
  */
1230
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;
1231
1261
  /**
1232
1262
  * Disallow unknown CSS units.
1233
1263
  */
@@ -1311,7 +1341,7 @@ interface Correctness {
1311
1341
  /**
1312
1342
  * Disallow missing key props in iterators/collection literals.
1313
1343
  */
1314
- useJsxKeyInIterable?: RuleConfiguration_for_Null;
1344
+ useJsxKeyInIterable?: RuleConfiguration_for_UseJsxKeyInIterableOptions;
1315
1345
  /**
1316
1346
  * Enforce "for" loop update clause moving the counter in the right direction.
1317
1347
  */
@@ -1330,58 +1360,14 @@ interface Nursery {
1330
1360
  * Disallow bitwise operators.
1331
1361
  */
1332
1362
  noBitwiseOperators?: RuleConfiguration_for_NoBitwiseOperatorsOptions;
1333
- /**
1334
- * Disallow use of CommonJs module system in favor of ESM style imports.
1335
- */
1336
- noCommonJs?: RuleConfiguration_for_Null;
1337
1363
  /**
1338
1364
  * Disallow expressions where the operation doesn't affect the value
1339
1365
  */
1340
1366
  noConstantBinaryExpression?: RuleConfiguration_for_Null;
1341
- /**
1342
- * Disallow a lower specificity selector from coming after a higher specificity selector.
1343
- */
1344
- noDescendingSpecificity?: RuleConfiguration_for_Null;
1345
1367
  /**
1346
1368
  * Disallow destructuring props inside JSX components in Solid projects.
1347
1369
  */
1348
1370
  noDestructuredProps?: RuleConfiguration_for_Null;
1349
- /**
1350
- * Disallow direct assignments to document.cookie.
1351
- */
1352
- noDocumentCookie?: RuleConfiguration_for_Null;
1353
- /**
1354
- * Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
1355
- */
1356
- noDocumentImportInPage?: RuleConfiguration_for_Null;
1357
- /**
1358
- * Disallow duplicate custom properties within declaration blocks.
1359
- */
1360
- noDuplicateCustomProperties?: RuleConfiguration_for_Null;
1361
- /**
1362
- * Disallow duplicate conditions in if-else-if chains
1363
- */
1364
- noDuplicateElseIf?: RuleConfiguration_for_Null;
1365
- /**
1366
- * No duplicated fields in GraphQL operations.
1367
- */
1368
- noDuplicateFields?: RuleConfiguration_for_Null;
1369
- /**
1370
- * Disallow duplicate properties within declaration blocks.
1371
- */
1372
- noDuplicateProperties?: RuleConfiguration_for_Null;
1373
- /**
1374
- * Disallow accessing namespace imports dynamically.
1375
- */
1376
- noDynamicNamespaceImportAccess?: RuleConfiguration_for_Null;
1377
- /**
1378
- * Disallow TypeScript enum.
1379
- */
1380
- noEnum?: RuleConfiguration_for_Null;
1381
- /**
1382
- * Disallow exporting an imported variable.
1383
- */
1384
- noExportedImports?: RuleConfiguration_for_Null;
1385
1371
  /**
1386
1372
  * Require Promise-like statements to be handled appropriately.
1387
1373
  */
@@ -1390,74 +1376,34 @@ interface Nursery {
1390
1376
  * Disallow the use of __dirname and __filename in the global scope.
1391
1377
  */
1392
1378
  noGlobalDirnameFilename?: RuleFixConfiguration_for_Null;
1393
- /**
1394
- * Prevent usage of \<head> element in a Next.js project.
1395
- */
1396
- noHeadElement?: RuleConfiguration_for_Null;
1397
- /**
1398
- * Prevent using the next/head module in pages/_document.js on Next.js projects.
1399
- */
1400
- noHeadImportInDocument?: RuleConfiguration_for_Null;
1401
- /**
1402
- * Prevent usage of \<img> element in a Next.js project.
1403
- */
1404
- noImgElement?: RuleConfiguration_for_Null;
1405
1379
  /**
1406
1380
  * Prevent import cycles.
1407
1381
  */
1408
1382
  noImportCycles?: RuleConfiguration_for_Null;
1409
1383
  /**
1410
- * Disallows the use of irregular whitespace characters.
1411
- */
1412
- noIrregularWhitespace?: RuleConfiguration_for_Null;
1413
- /**
1414
- * Disallow missing var function for css variables.
1415
- */
1416
- noMissingVarFunction?: RuleConfiguration_for_Null;
1417
- /**
1418
- * Disallow nested ternary expressions.
1384
+ * Disallow the use of the !important style.
1419
1385
  */
1420
- noNestedTernary?: RuleConfiguration_for_Null;
1386
+ noImportantStyles?: RuleFixConfiguration_for_Null;
1421
1387
  /**
1422
1388
  * Disallow use event handlers on non-interactive elements.
1423
1389
  */
1424
1390
  noNoninteractiveElementInteractions?: RuleConfiguration_for_Null;
1425
- /**
1426
- * Disallow octal escape sequences in string literals
1427
- */
1428
- noOctalEscape?: RuleFixConfiguration_for_Null;
1429
- /**
1430
- * Disallow the use of process.env.
1431
- */
1432
- noProcessEnv?: RuleConfiguration_for_Null;
1433
1391
  /**
1434
1392
  * Disallow the use of process global.
1435
1393
  */
1436
1394
  noProcessGlobal?: RuleFixConfiguration_for_Null;
1437
1395
  /**
1438
- * Disallow specified modules when loaded by import or require.
1396
+ * Disallow the use of configured elements.
1439
1397
  */
1440
- noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions;
1441
- /**
1442
- * Disallow user defined types.
1443
- */
1444
- noRestrictedTypes?: RuleFixConfiguration_for_NoRestrictedTypesOptions;
1398
+ noRestrictedElements?: RuleConfiguration_for_NoRestrictedElementsOptions;
1445
1399
  /**
1446
1400
  * Disallow usage of sensitive data such as API keys and tokens.
1447
1401
  */
1448
1402
  noSecrets?: RuleConfiguration_for_NoSecretsOptions;
1449
1403
  /**
1450
- * Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
1451
- */
1452
- noStaticElementInteractions?: RuleConfiguration_for_Null;
1453
- /**
1454
- * Enforce the use of String.slice() over String.substr() and String.substring().
1455
- */
1456
- noSubstr?: RuleFixConfiguration_for_Null;
1457
- /**
1458
- * Disallow template literal placeholder syntax in regular strings.
1404
+ * Disallow variable declarations from shadowing variables declared in the outer scope.
1459
1405
  */
1460
- noTemplateCurlyInString?: RuleConfiguration_for_Null;
1406
+ noShadow?: RuleConfiguration_for_Null;
1461
1407
  /**
1462
1408
  * Prevents the use of the TypeScript directive @ts-ignore.
1463
1409
  */
@@ -1467,83 +1413,39 @@ interface Nursery {
1467
1413
  */
1468
1414
  noUnknownAtRule?: RuleConfiguration_for_Null;
1469
1415
  /**
1470
- * Disallow unknown pseudo-class selectors.
1471
- */
1472
- noUnknownPseudoClass?: RuleConfiguration_for_Null;
1473
- /**
1474
- * Disallow unknown pseudo-element selectors.
1416
+ * Warn when importing non-existing exports.
1475
1417
  */
1476
- noUnknownPseudoElement?: RuleConfiguration_for_Null;
1477
- /**
1478
- * Disallow unknown type selectors.
1479
- */
1480
- noUnknownTypeSelector?: RuleConfiguration_for_Null;
1418
+ noUnresolvedImports?: RuleConfiguration_for_Null;
1481
1419
  /**
1482
1420
  * Prevent duplicate polyfills from Polyfill.io.
1483
1421
  */
1484
1422
  noUnwantedPolyfillio?: RuleConfiguration_for_Null;
1485
1423
  /**
1486
- * Disallow unnecessary escape sequence in regular expression literals.
1424
+ * Disallow useless backreferences in regular expression literals that always match an empty string.
1487
1425
  */
1488
- noUselessEscapeInRegex?: RuleFixConfiguration_for_Null;
1426
+ noUselessBackrefInRegex?: RuleConfiguration_for_Null;
1489
1427
  /**
1490
1428
  * Disallow unnecessary escapes in string literals.
1491
1429
  */
1492
1430
  noUselessEscapeInString?: RuleFixConfiguration_for_Null;
1493
- /**
1494
- * Disallow unnecessary String.raw function in template string literals without any escape sequence.
1495
- */
1496
- noUselessStringRaw?: RuleConfiguration_for_Null;
1497
1431
  /**
1498
1432
  * Disallow the use of useless undefined.
1499
1433
  */
1500
1434
  noUselessUndefined?: RuleFixConfiguration_for_Null;
1501
- /**
1502
- * Disallow use of @value rule in css modules.
1503
- */
1504
- noValueAtRule?: RuleConfiguration_for_Null;
1505
1435
  /**
1506
1436
  * It enables the recommended rules for this group
1507
1437
  */
1508
1438
  recommended?: boolean;
1509
- /**
1510
- * Disallow the use of overload signatures that are not next to each other.
1511
- */
1512
- useAdjacentOverloadSignatures?: RuleConfiguration_for_Null;
1513
- /**
1514
- * Enforce that ARIA properties are valid for the roles that are supported by the element.
1515
- */
1516
- useAriaPropsSupportedByRole?: RuleConfiguration_for_Null;
1517
- /**
1518
- * Use at() instead of integer index access.
1519
- */
1520
- useAtIndex?: RuleFixConfiguration_for_Null;
1521
- /**
1522
- * Enforce using single if instead of nested if clauses.
1523
- */
1524
- useCollapsedIf?: RuleFixConfiguration_for_Null;
1525
- /**
1526
- * Enforce declaring components only within modules that export React Components exclusively.
1527
- */
1528
- useComponentExportOnlyModules?: RuleConfiguration_for_UseComponentExportOnlyModulesOptions;
1529
- /**
1530
- * This rule enforces consistent use of curly braces inside JSX attributes and JSX children.
1531
- */
1532
- useConsistentCurlyBraces?: RuleFixConfiguration_for_Null;
1533
- /**
1534
- * Require consistent accessibility modifiers on class properties and methods.
1535
- */
1536
- useConsistentMemberAccessibility?: RuleConfiguration_for_ConsistentMemberAccessibilityOptions;
1537
1439
  /**
1538
1440
  * Require the consistent declaration of object literals. Defaults to explicit definitions.
1539
1441
  */
1540
- useConsistentObjectDefinition?: RuleConfiguration_for_UseConsistentObjectDefinitionOptions;
1442
+ useConsistentObjectDefinition?: RuleFixConfiguration_for_UseConsistentObjectDefinitionOptions;
1541
1443
  /**
1542
- * Require specifying the reason argument when using @deprecated directive
1444
+ * Require switch-case statements to be exhaustive.
1543
1445
  */
1544
- useDeprecatedReason?: RuleConfiguration_for_Null;
1446
+ useExhaustiveSwitchCases?: RuleFixConfiguration_for_Null;
1545
1447
  /**
1546
- * Require explicit return types on functions and class methods.
1448
+ * Enforce types in functions, methods, variables, and parameters.
1547
1449
  */
1548
1450
  useExplicitType?: RuleConfiguration_for_Null;
1549
1451
  /**
@@ -1554,18 +1456,14 @@ interface Nursery {
1554
1456
  * Enforce using Solid's \<For /> component for mapping an array to JSX elements.
1555
1457
  */
1556
1458
  useForComponent?: RuleConfiguration_for_Null;
1557
- /**
1558
- * Enforces the use of a recommended display strategy with Google Fonts.
1559
- */
1560
- useGoogleFontDisplay?: RuleConfiguration_for_Null;
1561
1459
  /**
1562
1460
  * Ensure the preconnect attribute is used when using Google Fonts.
1563
1461
  */
1564
1462
  useGoogleFontPreconnect?: RuleFixConfiguration_for_Null;
1565
1463
  /**
1566
- * Require for-in loops to include an if statement.
1464
+ * Enforce consistent return values in iterable callbacks.
1567
1465
  */
1568
- useGuardForIn?: RuleConfiguration_for_Null;
1466
+ useIterableCallbackReturn?: RuleConfiguration_for_Null;
1569
1467
  /**
1570
1468
  * Enforce specifying the name of GraphQL operations.
1571
1469
  */
@@ -1574,30 +1472,26 @@ interface Nursery {
1574
1472
  * Validates that all enum values are capitalized.
1575
1473
  */
1576
1474
  useNamingConvention?: RuleConfiguration_for_Null;
1475
+ /**
1476
+ * Enforce the use of numeric separators in numeric literals.
1477
+ */
1478
+ useNumericSeparators?: RuleFixConfiguration_for_Null;
1577
1479
  /**
1578
1480
  * Enforce the consistent use of the radix argument when using parseInt().
1579
1481
  */
1580
1482
  useParseIntRadix?: RuleFixConfiguration_for_Null;
1581
1483
  /**
1582
- * Enforce the sorting of CSS utility classes.
1484
+ * Enforce JSDoc comment lines to start with a single asterisk, except for the first one.
1583
1485
  */
1584
- useSortedClasses?: RuleFixConfiguration_for_UtilityClassSortingOptions;
1486
+ useSingleJsDocAsterisk?: RuleFixConfiguration_for_Null;
1585
1487
  /**
1586
- * Enforce the use of the directive "use strict" in script files.
1488
+ * Enforce the sorting of CSS utility classes.
1587
1489
  */
1588
- useStrictMode?: RuleFixConfiguration_for_Null;
1490
+ useSortedClasses?: RuleFixConfiguration_for_UtilityClassSortingOptions;
1589
1491
  /**
1590
1492
  * Require a description parameter for the Symbol().
1591
1493
  */
1592
1494
  useSymbolDescription?: RuleConfiguration_for_Null;
1593
- /**
1594
- * Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().
1595
- */
1596
- useTrimStartEnd?: RuleFixConfiguration_for_Null;
1597
- /**
1598
- * Use valid values for the autocomplete attribute on input elements.
1599
- */
1600
- useValidAutocomplete?: RuleConfiguration_for_UseValidAutocompleteOptions;
1601
1495
  }
1602
1496
  interface Performance {
1603
1497
  /**
@@ -1612,6 +1506,14 @@ interface Performance {
1612
1506
  * Disallow the use of the delete operator.
1613
1507
  */
1614
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;
1615
1517
  /**
1616
1518
  * Avoid re-export all.
1617
1519
  */
@@ -1626,6 +1528,10 @@ interface Performance {
1626
1528
  useTopLevelRegex?: RuleConfiguration_for_Null;
1627
1529
  }
1628
1530
  interface Security {
1531
+ /**
1532
+ * Disallow target="_blank" attribute without rel="noopener".
1533
+ */
1534
+ noBlankTarget?: RuleFixConfiguration_for_NoBlankTargetOptions;
1629
1535
  /**
1630
1536
  * Prevent the usage of dangerous JSX props
1631
1537
  */
@@ -1652,14 +1558,34 @@ interface Style {
1652
1558
  * Disallow comma operator.
1653
1559
  */
1654
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;
1655
1565
  /**
1656
1566
  * Disallow default exports.
1657
1567
  */
1658
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;
1659
1573
  /**
1660
1574
  * Disallow using a callback in asynchronous tests and hooks.
1661
1575
  */
1662
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;
1663
1589
  /**
1664
1590
  * Disallow implicit true values on JSX boolean attributes
1665
1591
  */
@@ -1680,6 +1606,10 @@ interface Style {
1680
1606
  * Disallow negation in the condition of an if statement if it has an else clause.
1681
1607
  */
1682
1608
  noNegationElse?: RuleFixConfiguration_for_Null;
1609
+ /**
1610
+ * Disallow nested ternary expressions.
1611
+ */
1612
+ noNestedTernary?: RuleConfiguration_for_Null;
1683
1613
  /**
1684
1614
  * Disallow non-null assertions using the ! postfix operator.
1685
1615
  */
@@ -1692,14 +1622,30 @@ interface Style {
1692
1622
  * Disallow the use of parameter properties in class constructors.
1693
1623
  */
1694
1624
  noParameterProperties?: RuleConfiguration_for_Null;
1625
+ /**
1626
+ * Disallow the use of process.env.
1627
+ */
1628
+ noProcessEnv?: RuleConfiguration_for_Null;
1695
1629
  /**
1696
1630
  * This rule allows you to specify global variable names that you don’t want to use in your application.
1697
1631
  */
1698
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;
1699
1641
  /**
1700
1642
  * Disallow the use of constants which its value is the upper-case version of its name.
1701
1643
  */
1702
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;
1703
1649
  /**
1704
1650
  * Disallow template literals if interpolation and special-character handling are not needed
1705
1651
  */
@@ -1708,6 +1654,10 @@ interface Style {
1708
1654
  * Disallow else block when the if block breaks early.
1709
1655
  */
1710
1656
  noUselessElse?: RuleFixConfiguration_for_Null;
1657
+ /**
1658
+ * Disallow use of @value rule in css modules.
1659
+ */
1660
+ noValueAtRule?: RuleConfiguration_for_Null;
1711
1661
  /**
1712
1662
  * Disallow the use of yoda expressions.
1713
1663
  */
@@ -1720,6 +1670,10 @@ interface Style {
1720
1670
  * Enforce the use of as const over literal type and type annotation.
1721
1671
  */
1722
1672
  useAsConstAssertion?: RuleFixConfiguration_for_Null;
1673
+ /**
1674
+ * Use at() instead of integer index access.
1675
+ */
1676
+ useAtIndex?: RuleFixConfiguration_for_Null;
1723
1677
  /**
1724
1678
  * Requires following curly brace conventions.
1725
1679
  */
@@ -1728,6 +1682,14 @@ interface Style {
1728
1682
  * Enforce using else if instead of nested if in else clauses.
1729
1683
  */
1730
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;
1731
1693
  /**
1732
1694
  * Require consistently using either T\[] or Array\<T>
1733
1695
  */
@@ -1736,6 +1698,14 @@ interface Style {
1736
1698
  * Enforce the use of new for all builtins, except String, Number and Boolean.
1737
1699
  */
1738
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;
1739
1709
  /**
1740
1710
  * Require const declarations for variables that are only assigned once.
1741
1711
  */
@@ -1748,6 +1718,10 @@ interface Style {
1748
1718
  * Require the default clause in switch statements.
1749
1719
  */
1750
1720
  useDefaultSwitchClause?: RuleConfiguration_for_Null;
1721
+ /**
1722
+ * Require specifying the reason argument when using @deprecated directive
1723
+ */
1724
+ useDeprecatedReason?: RuleConfiguration_for_Null;
1751
1725
  /**
1752
1726
  * Require that each enum member value be explicitly initialized.
1753
1727
  */
@@ -1779,7 +1753,7 @@ interface Style {
1779
1753
  /**
1780
1754
  * Promotes the use of import type for types.
1781
1755
  */
1782
- useImportType?: RuleFixConfiguration_for_Null;
1756
+ useImportType?: RuleFixConfiguration_for_ImportTypeOptions;
1783
1757
  /**
1784
1758
  * Require all enum members to be literal values.
1785
1759
  */
@@ -1805,13 +1779,9 @@ interface Style {
1805
1779
  */
1806
1780
  useNumericLiterals?: RuleFixConfiguration_for_Null;
1807
1781
  /**
1808
- * Prevent extra closing tags for components without children
1782
+ * Prevent extra closing tags for components without children.
1809
1783
  */
1810
1784
  useSelfClosingElements?: RuleFixConfiguration_for_UseSelfClosingElementsOptions;
1811
- /**
1812
- * When expressing array types, this rule promotes the usage of T\[] shorthand instead of Array\<T>.
1813
- */
1814
- useShorthandArrayType?: RuleFixConfiguration_for_Null;
1815
1785
  /**
1816
1786
  * Require assignment operator shorthand where possible.
1817
1787
  */
@@ -1820,10 +1790,6 @@ interface Style {
1820
1790
  * Enforce using function types instead of object type with call signatures.
1821
1791
  */
1822
1792
  useShorthandFunctionType?: RuleFixConfiguration_for_Null;
1823
- /**
1824
- * Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.
1825
- */
1826
- useSingleCaseStatement?: RuleFixConfiguration_for_Null;
1827
1793
  /**
1828
1794
  * Disallow multiple variable declarations in the same variable statement
1829
1795
  */
@@ -1840,6 +1806,10 @@ interface Style {
1840
1806
  * Disallow throwing non-Error values.
1841
1807
  */
1842
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;
1843
1813
  }
1844
1814
  interface Suspicious {
1845
1815
  /**
@@ -1898,6 +1868,14 @@ interface Suspicious {
1898
1868
  * Disallow the use of debugger
1899
1869
  */
1900
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;
1901
1879
  /**
1902
1880
  * Require the use of === and !==.
1903
1881
  */
@@ -1914,6 +1892,18 @@ interface Suspicious {
1914
1892
  * Disallow duplicate class members.
1915
1893
  */
1916
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;
1917
1907
  /**
1918
1908
  * Disallow duplicate names within font families.
1919
1909
  */
@@ -1930,6 +1920,10 @@ interface Suspicious {
1930
1920
  * Disallow duplicate function parameter name.
1931
1921
  */
1932
1922
  noDuplicateParameters?: RuleConfiguration_for_Null;
1923
+ /**
1924
+ * Disallow duplicate properties within declaration blocks.
1925
+ */
1926
+ noDuplicateProperties?: RuleConfiguration_for_Null;
1933
1927
  /**
1934
1928
  * Disallow duplicate selectors within keyframe blocks.
1935
1929
  */
@@ -1990,6 +1984,10 @@ interface Suspicious {
1990
1984
  * Use Number.isNaN instead of global isNaN.
1991
1985
  */
1992
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;
1993
1991
  /**
1994
1992
  * Disallow use of implicit any type on variable declarations.
1995
1993
  */
@@ -2002,6 +2000,10 @@ interface Suspicious {
2002
2000
  * Disallow invalid !important within keyframe declarations
2003
2001
  */
2004
2002
  noImportantInKeyframe?: RuleConfiguration_for_Null;
2003
+ /**
2004
+ * Disallows the use of irregular whitespace characters.
2005
+ */
2006
+ noIrregularWhitespace?: RuleConfiguration_for_Null;
2005
2007
  /**
2006
2008
  * Disallow labels that share a name with a variable
2007
2009
  */
@@ -2022,6 +2024,10 @@ interface Suspicious {
2022
2024
  * Disallow shorthand assign when variable appears on both sides.
2023
2025
  */
2024
2026
  noMisrefactoredShorthandAssign?: RuleFixConfiguration_for_Null;
2027
+ /**
2028
+ * Disallow octal escape sequences in string literals
2029
+ */
2030
+ noOctalEscape?: RuleFixConfiguration_for_Null;
2025
2031
  /**
2026
2032
  * Disallow direct use of Object.prototype builtins.
2027
2033
  */
@@ -2062,6 +2068,10 @@ interface Suspicious {
2062
2068
  * It detects possible "wrong" semicolons inside JSX elements.
2063
2069
  */
2064
2070
  noSuspiciousSemicolonInJsx?: RuleConfiguration_for_Null;
2071
+ /**
2072
+ * Disallow template literal placeholder syntax in regular strings.
2073
+ */
2074
+ noTemplateCurlyInString?: RuleConfiguration_for_Null;
2065
2075
  /**
2066
2076
  * Disallow then property.
2067
2077
  */
@@ -2082,6 +2092,10 @@ interface Suspicious {
2082
2092
  * It enables the recommended rules for this group
2083
2093
  */
2084
2094
  recommended?: boolean;
2095
+ /**
2096
+ * Disallow the use of overload signatures that are not next to each other.
2097
+ */
2098
+ useAdjacentOverloadSignatures?: RuleConfiguration_for_Null;
2085
2099
  /**
2086
2100
  * Ensure async functions utilize await.
2087
2101
  */
@@ -2098,6 +2112,14 @@ interface Suspicious {
2098
2112
  * Enforce get methods to always return a value.
2099
2113
  */
2100
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;
2101
2123
  /**
2102
2124
  * Use Array.isArray() instead of instanceof Array.
2103
2125
  */
@@ -2110,6 +2132,10 @@ interface Suspicious {
2110
2132
  * Enforce using the digits argument with Number#toFixed().
2111
2133
  */
2112
2134
  useNumberToFixedDigitsArgument?: RuleFixConfiguration_for_Null;
2135
+ /**
2136
+ * Enforce the use of the directive "use strict" in script files.
2137
+ */
2138
+ useStrictMode?: RuleFixConfiguration_for_Null;
2113
2139
  /**
2114
2140
  * This rule checks that the result of a typeof expression is compared to a valid value.
2115
2141
  */
@@ -2139,9 +2165,6 @@ interface RuleAssistWithOptions_for_Null {
2139
2165
  type RuleFixConfiguration_for_Null =
2140
2166
  | RulePlainConfiguration
2141
2167
  | RuleWithFixOptions_for_Null;
2142
- type RuleFixConfiguration_for_AllowDomainOptions =
2143
- | RulePlainConfiguration
2144
- | RuleWithFixOptions_for_AllowDomainOptions;
2145
2168
  type RuleConfiguration_for_NoLabelWithoutControlOptions =
2146
2169
  | RulePlainConfiguration
2147
2170
  | RuleWithOptions_for_NoLabelWithoutControlOptions;
@@ -2151,6 +2174,9 @@ type RuleConfiguration_for_Null =
2151
2174
  type RuleFixConfiguration_for_ValidAriaRoleOptions =
2152
2175
  | RulePlainConfiguration
2153
2176
  | RuleWithFixOptions_for_ValidAriaRoleOptions;
2177
+ type RuleConfiguration_for_UseValidAutocompleteOptions =
2178
+ | RulePlainConfiguration
2179
+ | RuleWithOptions_for_UseValidAutocompleteOptions;
2154
2180
  type RuleConfiguration_for_ComplexityOptions =
2155
2181
  | RulePlainConfiguration
2156
2182
  | RuleWithOptions_for_ComplexityOptions;
@@ -2178,42 +2204,51 @@ type RuleConfiguration_for_DeprecatedHooksOptions =
2178
2204
  type RuleFixConfiguration_for_UseImportExtensionsOptions =
2179
2205
  | RulePlainConfiguration
2180
2206
  | RuleWithFixOptions_for_UseImportExtensionsOptions;
2207
+ type RuleConfiguration_for_UseJsxKeyInIterableOptions =
2208
+ | RulePlainConfiguration
2209
+ | RuleWithOptions_for_UseJsxKeyInIterableOptions;
2181
2210
  type RuleConfiguration_for_NoBitwiseOperatorsOptions =
2182
2211
  | RulePlainConfiguration
2183
2212
  | RuleWithOptions_for_NoBitwiseOperatorsOptions;
2184
- type RuleConfiguration_for_RestrictedImportsOptions =
2185
- | RulePlainConfiguration
2186
- | RuleWithOptions_for_RestrictedImportsOptions;
2187
- type RuleFixConfiguration_for_NoRestrictedTypesOptions =
2213
+ type RuleConfiguration_for_NoRestrictedElementsOptions =
2188
2214
  | RulePlainConfiguration
2189
- | RuleWithFixOptions_for_NoRestrictedTypesOptions;
2215
+ | RuleWithOptions_for_NoRestrictedElementsOptions;
2190
2216
  type RuleConfiguration_for_NoSecretsOptions =
2191
2217
  | RulePlainConfiguration
2192
2218
  | RuleWithOptions_for_NoSecretsOptions;
2193
- type RuleConfiguration_for_UseComponentExportOnlyModulesOptions =
2194
- | RulePlainConfiguration
2195
- | RuleWithOptions_for_UseComponentExportOnlyModulesOptions;
2196
- type RuleConfiguration_for_ConsistentMemberAccessibilityOptions =
2197
- | RulePlainConfiguration
2198
- | RuleWithOptions_for_ConsistentMemberAccessibilityOptions;
2199
- type RuleConfiguration_for_UseConsistentObjectDefinitionOptions =
2219
+ type RuleFixConfiguration_for_UseConsistentObjectDefinitionOptions =
2200
2220
  | RulePlainConfiguration
2201
- | RuleWithOptions_for_UseConsistentObjectDefinitionOptions;
2221
+ | RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions;
2202
2222
  type RuleFixConfiguration_for_UtilityClassSortingOptions =
2203
2223
  | RulePlainConfiguration
2204
2224
  | RuleWithFixOptions_for_UtilityClassSortingOptions;
2205
- type RuleConfiguration_for_UseValidAutocompleteOptions =
2225
+ type RuleFixConfiguration_for_NoBlankTargetOptions =
2206
2226
  | RulePlainConfiguration
2207
- | RuleWithOptions_for_UseValidAutocompleteOptions;
2227
+ | RuleWithFixOptions_for_NoBlankTargetOptions;
2208
2228
  type RuleConfiguration_for_RestrictedGlobalsOptions =
2209
2229
  | RulePlainConfiguration
2210
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;
2211
2240
  type RuleFixConfiguration_for_ConsistentArrayTypeOptions =
2212
2241
  | RulePlainConfiguration
2213
2242
  | RuleWithFixOptions_for_ConsistentArrayTypeOptions;
2243
+ type RuleConfiguration_for_ConsistentMemberAccessibilityOptions =
2244
+ | RulePlainConfiguration
2245
+ | RuleWithOptions_for_ConsistentMemberAccessibilityOptions;
2214
2246
  type RuleConfiguration_for_FilenamingConventionOptions =
2215
2247
  | RulePlainConfiguration
2216
2248
  | RuleWithOptions_for_FilenamingConventionOptions;
2249
+ type RuleFixConfiguration_for_ImportTypeOptions =
2250
+ | RulePlainConfiguration
2251
+ | RuleWithFixOptions_for_ImportTypeOptions;
2217
2252
  type RuleFixConfiguration_for_NamingConventionOptions =
2218
2253
  | RulePlainConfiguration
2219
2254
  | RuleWithFixOptions_for_NamingConventionOptions;
@@ -2247,20 +2282,6 @@ interface RuleWithFixOptions_for_Null {
2247
2282
  */
2248
2283
  options: null;
2249
2284
  }
2250
- interface RuleWithFixOptions_for_AllowDomainOptions {
2251
- /**
2252
- * The kind of the code actions emitted by the rule
2253
- */
2254
- fix?: FixKind;
2255
- /**
2256
- * The severity of the emitted diagnostics by the rule
2257
- */
2258
- level: RulePlainConfiguration;
2259
- /**
2260
- * Rule's options
2261
- */
2262
- options: AllowDomainOptions;
2263
- }
2264
2285
  interface RuleWithOptions_for_NoLabelWithoutControlOptions {
2265
2286
  /**
2266
2287
  * The severity of the emitted diagnostics by the rule
@@ -2295,6 +2316,16 @@ interface RuleWithFixOptions_for_ValidAriaRoleOptions {
2295
2316
  */
2296
2317
  options: ValidAriaRoleOptions;
2297
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
+ }
2298
2329
  interface RuleWithOptions_for_ComplexityOptions {
2299
2330
  /**
2300
2331
  * The severity of the emitted diagnostics by the rule
@@ -2397,7 +2428,7 @@ interface RuleWithFixOptions_for_UseImportExtensionsOptions {
2397
2428
  */
2398
2429
  options: UseImportExtensionsOptions;
2399
2430
  }
2400
- interface RuleWithOptions_for_NoBitwiseOperatorsOptions {
2431
+ interface RuleWithOptions_for_UseJsxKeyInIterableOptions {
2401
2432
  /**
2402
2433
  * The severity of the emitted diagnostics by the rule
2403
2434
  */
@@ -2405,9 +2436,9 @@ interface RuleWithOptions_for_NoBitwiseOperatorsOptions {
2405
2436
  /**
2406
2437
  * Rule's options
2407
2438
  */
2408
- options: NoBitwiseOperatorsOptions;
2439
+ options: UseJsxKeyInIterableOptions;
2409
2440
  }
2410
- interface RuleWithOptions_for_RestrictedImportsOptions {
2441
+ interface RuleWithOptions_for_NoBitwiseOperatorsOptions {
2411
2442
  /**
2412
2443
  * The severity of the emitted diagnostics by the rule
2413
2444
  */
@@ -2415,13 +2446,9 @@ interface RuleWithOptions_for_RestrictedImportsOptions {
2415
2446
  /**
2416
2447
  * Rule's options
2417
2448
  */
2418
- options: RestrictedImportsOptions;
2449
+ options: NoBitwiseOperatorsOptions;
2419
2450
  }
2420
- interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
2421
- /**
2422
- * The kind of the code actions emitted by the rule
2423
- */
2424
- fix?: FixKind;
2451
+ interface RuleWithOptions_for_NoRestrictedElementsOptions {
2425
2452
  /**
2426
2453
  * The severity of the emitted diagnostics by the rule
2427
2454
  */
@@ -2429,7 +2456,7 @@ interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
2429
2456
  /**
2430
2457
  * Rule's options
2431
2458
  */
2432
- options: NoRestrictedTypesOptions;
2459
+ options: NoRestrictedElementsOptions;
2433
2460
  }
2434
2461
  interface RuleWithOptions_for_NoSecretsOptions {
2435
2462
  /**
@@ -2441,7 +2468,11 @@ interface RuleWithOptions_for_NoSecretsOptions {
2441
2468
  */
2442
2469
  options: NoSecretsOptions;
2443
2470
  }
2444
- 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;
2445
2476
  /**
2446
2477
  * The severity of the emitted diagnostics by the rule
2447
2478
  */
@@ -2449,9 +2480,13 @@ interface RuleWithOptions_for_UseComponentExportOnlyModulesOptions {
2449
2480
  /**
2450
2481
  * Rule's options
2451
2482
  */
2452
- options: UseComponentExportOnlyModulesOptions;
2483
+ options: UseConsistentObjectDefinitionOptions;
2453
2484
  }
2454
- 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;
2455
2490
  /**
2456
2491
  * The severity of the emitted diagnostics by the rule
2457
2492
  */
@@ -2459,9 +2494,13 @@ interface RuleWithOptions_for_ConsistentMemberAccessibilityOptions {
2459
2494
  /**
2460
2495
  * Rule's options
2461
2496
  */
2462
- options: ConsistentMemberAccessibilityOptions;
2497
+ options: UtilityClassSortingOptions;
2463
2498
  }
2464
- interface RuleWithOptions_for_UseConsistentObjectDefinitionOptions {
2499
+ interface RuleWithFixOptions_for_NoBlankTargetOptions {
2500
+ /**
2501
+ * The kind of the code actions emitted by the rule
2502
+ */
2503
+ fix?: FixKind;
2465
2504
  /**
2466
2505
  * The severity of the emitted diagnostics by the rule
2467
2506
  */
@@ -2469,13 +2508,19 @@ interface RuleWithOptions_for_UseConsistentObjectDefinitionOptions {
2469
2508
  /**
2470
2509
  * Rule's options
2471
2510
  */
2472
- options: UseConsistentObjectDefinitionOptions;
2511
+ options: NoBlankTargetOptions;
2473
2512
  }
2474
- interface RuleWithFixOptions_for_UtilityClassSortingOptions {
2513
+ interface RuleWithOptions_for_RestrictedGlobalsOptions {
2475
2514
  /**
2476
- * The kind of the code actions emitted by the rule
2515
+ * The severity of the emitted diagnostics by the rule
2477
2516
  */
2478
- fix?: FixKind;
2517
+ level: RulePlainConfiguration;
2518
+ /**
2519
+ * Rule's options
2520
+ */
2521
+ options: RestrictedGlobalsOptions;
2522
+ }
2523
+ interface RuleWithOptions_for_RestrictedImportsOptions {
2479
2524
  /**
2480
2525
  * The severity of the emitted diagnostics by the rule
2481
2526
  */
@@ -2483,9 +2528,13 @@ interface RuleWithFixOptions_for_UtilityClassSortingOptions {
2483
2528
  /**
2484
2529
  * Rule's options
2485
2530
  */
2486
- options: UtilityClassSortingOptions;
2531
+ options: RestrictedImportsOptions;
2487
2532
  }
2488
- interface RuleWithOptions_for_UseValidAutocompleteOptions {
2533
+ interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
2534
+ /**
2535
+ * The kind of the code actions emitted by the rule
2536
+ */
2537
+ fix?: FixKind;
2489
2538
  /**
2490
2539
  * The severity of the emitted diagnostics by the rule
2491
2540
  */
@@ -2493,9 +2542,9 @@ interface RuleWithOptions_for_UseValidAutocompleteOptions {
2493
2542
  /**
2494
2543
  * Rule's options
2495
2544
  */
2496
- options: UseValidAutocompleteOptions;
2545
+ options: NoRestrictedTypesOptions;
2497
2546
  }
2498
- interface RuleWithOptions_for_RestrictedGlobalsOptions {
2547
+ interface RuleWithOptions_for_UseComponentExportOnlyModulesOptions {
2499
2548
  /**
2500
2549
  * The severity of the emitted diagnostics by the rule
2501
2550
  */
@@ -2503,7 +2552,7 @@ interface RuleWithOptions_for_RestrictedGlobalsOptions {
2503
2552
  /**
2504
2553
  * Rule's options
2505
2554
  */
2506
- options: RestrictedGlobalsOptions;
2555
+ options: UseComponentExportOnlyModulesOptions;
2507
2556
  }
2508
2557
  interface RuleWithFixOptions_for_ConsistentArrayTypeOptions {
2509
2558
  /**
@@ -2519,6 +2568,16 @@ interface RuleWithFixOptions_for_ConsistentArrayTypeOptions {
2519
2568
  */
2520
2569
  options: ConsistentArrayTypeOptions;
2521
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
+ }
2522
2581
  interface RuleWithOptions_for_FilenamingConventionOptions {
2523
2582
  /**
2524
2583
  * The severity of the emitted diagnostics by the rule
@@ -2529,6 +2588,20 @@ interface RuleWithOptions_for_FilenamingConventionOptions {
2529
2588
  */
2530
2589
  options: FilenamingConventionOptions;
2531
2590
  }
2591
+ interface RuleWithFixOptions_for_ImportTypeOptions {
2592
+ /**
2593
+ * The kind of the code actions emitted by the rule
2594
+ */
2595
+ fix?: FixKind;
2596
+ /**
2597
+ * The severity of the emitted diagnostics by the rule
2598
+ */
2599
+ level: RulePlainConfiguration;
2600
+ /**
2601
+ * Rule's options
2602
+ */
2603
+ options: ImportTypeOptions;
2604
+ }
2532
2605
  interface RuleWithFixOptions_for_NamingConventionOptions {
2533
2606
  /**
2534
2607
  * The kind of the code actions emitted by the rule
@@ -2597,12 +2670,6 @@ interface RuleWithFixOptions_for_NoDoubleEqualsOptions {
2597
2670
  }
2598
2671
  type ImportGroups = ImportGroup[];
2599
2672
  type FixKind = "none" | "safe" | "unsafe";
2600
- interface AllowDomainOptions {
2601
- /**
2602
- * List of domains to allow `target="_blank"` without `rel="noreferrer"`
2603
- */
2604
- allowDomains: string[];
2605
- }
2606
2673
  interface NoLabelWithoutControlOptions {
2607
2674
  /**
2608
2675
  * Array of component names that should be considered the same as an `input` element.
@@ -2621,6 +2688,12 @@ interface ValidAriaRoleOptions {
2621
2688
  allowInvalidRoles?: string[];
2622
2689
  ignoreNonDom?: boolean;
2623
2690
  }
2691
+ interface UseValidAutocompleteOptions {
2692
+ /**
2693
+ * `input` like custom components that should be checked.
2694
+ */
2695
+ inputComponents?: string[];
2696
+ }
2624
2697
  interface ComplexityOptions {
2625
2698
  /**
2626
2699
  * The maximum complexity score that we allow. Anything higher is considered excessive.
@@ -2688,20 +2761,23 @@ interface UseImportExtensionsOptions {
2688
2761
  */
2689
2762
  forceJsExtensions?: boolean;
2690
2763
  }
2764
+ interface UseJsxKeyInIterableOptions {
2765
+ /**
2766
+ * Set to `true` to check shorthand fragments (`<></>`)
2767
+ */
2768
+ checkShorthandFragments?: boolean;
2769
+ }
2691
2770
  interface NoBitwiseOperatorsOptions {
2692
2771
  /**
2693
2772
  * Allows a list of bitwise operators to be used as exceptions.
2694
2773
  */
2695
2774
  allow: string[];
2696
2775
  }
2697
- interface RestrictedImportsOptions {
2776
+ interface NoRestrictedElementsOptions {
2698
2777
  /**
2699
- * A list of import paths that should trigger the rule.
2778
+ * Elements to restrict. Each key is the element name, and the value is the message to show when the element is used.
2700
2779
  */
2701
- paths: Record<string, CustomRestrictedImport>;
2702
- }
2703
- interface NoRestrictedTypesOptions {
2704
- types?: Record<string, CustomRestrictedType>;
2780
+ elements: CustomRestrictedElements;
2705
2781
  }
2706
2782
  interface NoSecretsOptions {
2707
2783
  /**
@@ -2709,19 +2785,6 @@ interface NoSecretsOptions {
2709
2785
  */
2710
2786
  entropyThreshold?: number;
2711
2787
  }
2712
- interface UseComponentExportOnlyModulesOptions {
2713
- /**
2714
- * Allows the export of constants. This option is for environments that support it, such as [Vite](https://vitejs.dev/)
2715
- */
2716
- allowConstantExport?: boolean;
2717
- /**
2718
- * 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)
2719
- */
2720
- allowExportNames: string[];
2721
- }
2722
- interface ConsistentMemberAccessibilityOptions {
2723
- accessibility?: Accessibility;
2724
- }
2725
2788
  interface UseConsistentObjectDefinitionOptions {
2726
2789
  /**
2727
2790
  * The preferred syntax to enforce.
@@ -2738,21 +2801,47 @@ interface UtilityClassSortingOptions {
2738
2801
  */
2739
2802
  functions?: string[];
2740
2803
  }
2741
- interface UseValidAutocompleteOptions {
2804
+ interface NoBlankTargetOptions {
2742
2805
  /**
2743
- * `input` like custom components that should be checked.
2806
+ * List of domains where `target="_blank"` is allowed without `rel="noopener"`.
2744
2807
  */
2745
- inputComponents?: string[];
2808
+ allowDomains: string[];
2809
+ /**
2810
+ * Whether `noreferrer` is allowed in addition to `noopener`.
2811
+ */
2812
+ allowNoReferrer?: boolean;
2746
2813
  }
2747
2814
  interface RestrictedGlobalsOptions {
2748
2815
  /**
2749
2816
  * A list of names that should trigger the rule
2750
2817
  */
2751
- deniedGlobals: string[];
2818
+ deniedGlobals: Record<string, string>;
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[];
2752
2838
  }
2753
2839
  interface ConsistentArrayTypeOptions {
2754
2840
  syntax?: ConsistentArrayType;
2755
2841
  }
2842
+ interface ConsistentMemberAccessibilityOptions {
2843
+ accessibility?: Accessibility;
2844
+ }
2756
2845
  interface FilenamingConventionOptions {
2757
2846
  /**
2758
2847
  * Allowed cases for file names.
@@ -2771,6 +2860,9 @@ interface FilenamingConventionOptions {
2771
2860
  */
2772
2861
  strictCase: boolean;
2773
2862
  }
2863
+ interface ImportTypeOptions {
2864
+ style: Style2;
2865
+ }
2774
2866
  interface NamingConventionOptions {
2775
2867
  /**
2776
2868
  * Custom conventions.
@@ -2808,10 +2900,7 @@ If `false`, no such exception will be made.
2808
2900
  */
2809
2901
  ignoreNull: boolean;
2810
2902
  }
2811
- type ImportGroup =
2812
- | PredefinedImportGroup
2813
- | ImportSourceGlob
2814
- | ImportSourceGlob[];
2903
+ type ImportGroup = null | GroupMatcher | GroupMatcher[];
2815
2904
  type Visibility = "public" | "package" | "private";
2816
2905
  type DependencyAvailability = boolean | string[];
2817
2906
  interface Hook {
@@ -2840,13 +2929,15 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
2840
2929
  */
2841
2930
  stableResult?: StableHookResult;
2842
2931
  }
2932
+ type CustomRestrictedElements = Record<string, string>;
2933
+ type ObjectPropertySyntax = "explicit" | "shorthand";
2843
2934
  type CustomRestrictedImport = string | CustomRestrictedImportOptions;
2844
2935
  type CustomRestrictedType = string | CustomRestrictedTypeOptions;
2845
- type Accessibility = "noPublic" | "explicit" | "none";
2846
- type ObjectPropertySyntax = "explicit" | "shorthand";
2847
2936
  type ConsistentArrayType = "shorthand" | "generic";
2937
+ type Accessibility = "noPublic" | "explicit" | "none";
2848
2938
  type FilenameCases = FilenameCase[];
2849
2939
  type Regex = string;
2940
+ type Style2 = "auto" | "inlineType" | "separatedType";
2850
2941
  interface Convention {
2851
2942
  /**
2852
2943
  * String cases to enforce
@@ -2861,16 +2952,7 @@ interface Convention {
2861
2952
  */
2862
2953
  selector: Selector;
2863
2954
  }
2864
- type PredefinedImportGroup =
2865
- | ":BLANK_LINE:"
2866
- | ":ALIAS:"
2867
- | ":BUN:"
2868
- | ":NODE:"
2869
- | ":PACKAGE:"
2870
- | ":PACKAGE_WITH_PROTOCOL:"
2871
- | ":PATH:"
2872
- | ":URL:";
2873
- type ImportSourceGlob = Glob;
2955
+ type GroupMatcher = ImportMatcher | SourceMatcher;
2874
2956
  type StableHookResult = boolean | number[];
2875
2957
  interface CustomRestrictedImportOptions {
2876
2958
  /**
@@ -2911,6 +2993,11 @@ interface Selector {
2911
2993
  */
2912
2994
  scope: Scope;
2913
2995
  }
2996
+ interface ImportMatcher {
2997
+ source?: SourcesMatcher;
2998
+ type?: boolean;
2999
+ }
3000
+ type SourceMatcher = NegatablePredefinedSourceMatcher | ImportSourceGlob;
2914
3001
  type Format = "camelCase" | "CONSTANT_CASE" | "PascalCase" | "snake_case";
2915
3002
  type Kind =
2916
3003
  | "class"
@@ -2953,6 +3040,23 @@ type Kind =
2953
3040
  | "typeMethod";
2954
3041
  type Modifiers = RestrictedModifier[];
2955
3042
  type Scope = "any" | "global";
3043
+ type SourcesMatcher = SourceMatcher | SourceMatcher[];
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:";
3059
+ type ImportSourceGlob = Glob;
2956
3060
  type RestrictedModifier =
2957
3061
  | "abstract"
2958
3062
  | "private"
@@ -2981,7 +3085,6 @@ type Category =
2981
3085
  | "lint/a11y/noAriaHiddenOnFocusable"
2982
3086
  | "lint/a11y/noAriaUnsupportedElements"
2983
3087
  | "lint/a11y/noAutofocus"
2984
- | "lint/a11y/noBlankTarget"
2985
3088
  | "lint/a11y/noDistractingElements"
2986
3089
  | "lint/a11y/noHeaderScope"
2987
3090
  | "lint/a11y/noInteractiveElementToNoninteractiveRole"
@@ -2991,11 +3094,13 @@ type Category =
2991
3094
  | "lint/a11y/noPositiveTabindex"
2992
3095
  | "lint/a11y/noRedundantAlt"
2993
3096
  | "lint/a11y/noRedundantRoles"
3097
+ | "lint/a11y/noStaticElementInteractions"
2994
3098
  | "lint/a11y/noSvgWithoutTitle"
2995
3099
  | "lint/a11y/useAltText"
2996
3100
  | "lint/a11y/useAnchorContent"
2997
3101
  | "lint/a11y/useAriaActivedescendantWithTabindex"
2998
3102
  | "lint/a11y/useAriaPropsForRole"
3103
+ | "lint/a11y/useAriaPropsSupportedByRole"
2999
3104
  | "lint/a11y/useButtonType"
3000
3105
  | "lint/a11y/useFocusableInteractive"
3001
3106
  | "lint/a11y/useGenericFontNames"
@@ -3010,24 +3115,27 @@ type Category =
3010
3115
  | "lint/a11y/useValidAriaProps"
3011
3116
  | "lint/a11y/useValidAriaRole"
3012
3117
  | "lint/a11y/useValidAriaValues"
3118
+ | "lint/a11y/useValidAutocomplete"
3013
3119
  | "lint/a11y/useValidLang"
3120
+ | "lint/complexity/noAdjacentSpacesInRegex"
3014
3121
  | "lint/complexity/noBannedTypes"
3015
3122
  | "lint/complexity/noEmptyTypeParameters"
3016
3123
  | "lint/complexity/noExcessiveCognitiveComplexity"
3017
3124
  | "lint/complexity/noExcessiveNestedTestSuites"
3018
3125
  | "lint/complexity/noExtraBooleanCast"
3019
3126
  | "lint/complexity/noForEach"
3020
- | "lint/complexity/noAdjacentSpacesInRegex"
3021
3127
  | "lint/complexity/noStaticOnlyClass"
3022
3128
  | "lint/complexity/noThisInStatic"
3023
3129
  | "lint/complexity/noUselessCatch"
3024
3130
  | "lint/complexity/noUselessConstructor"
3025
3131
  | "lint/complexity/noUselessEmptyExport"
3132
+ | "lint/complexity/noUselessEscapeInRegex"
3026
3133
  | "lint/complexity/noUselessFragments"
3027
3134
  | "lint/complexity/noUselessLabel"
3028
3135
  | "lint/complexity/noUselessLoneBlockStatements"
3029
3136
  | "lint/complexity/noUselessRename"
3030
3137
  | "lint/complexity/noUselessStringConcat"
3138
+ | "lint/complexity/noUselessStringRaw"
3031
3139
  | "lint/complexity/noUselessSwitchCase"
3032
3140
  | "lint/complexity/noUselessTernary"
3033
3141
  | "lint/complexity/noUselessThisAlias"
@@ -3061,6 +3169,7 @@ type Category =
3061
3169
  | "lint/correctness/noInvalidNewBuiltin"
3062
3170
  | "lint/correctness/noInvalidPositionAtImportRule"
3063
3171
  | "lint/correctness/noInvalidUseBeforeDeclaration"
3172
+ | "lint/correctness/noMissingVarFunction"
3064
3173
  | "lint/correctness/noNewSymbol"
3065
3174
  | "lint/correctness/noNodejsModules"
3066
3175
  | "lint/correctness/noNonoctalDecimalEscape"
@@ -3076,9 +3185,12 @@ type Category =
3076
3185
  | "lint/correctness/noUnknownFunction"
3077
3186
  | "lint/correctness/noUnknownMediaFeatureName"
3078
3187
  | "lint/correctness/noUnknownProperty"
3188
+ | "lint/correctness/noUnknownPseudoClass"
3189
+ | "lint/correctness/noUnknownPseudoClassSelector"
3190
+ | "lint/correctness/noUnknownPseudoElement"
3191
+ | "lint/correctness/noUnknownTypeSelector"
3079
3192
  | "lint/correctness/noUnknownUnit"
3080
3193
  | "lint/correctness/noUnmatchableAnbSelector"
3081
- | "lint/correctness/noUselessContinue"
3082
3194
  | "lint/correctness/noUnreachable"
3083
3195
  | "lint/correctness/noUnreachableSuper"
3084
3196
  | "lint/correctness/noUnsafeFinally"
@@ -3088,6 +3200,7 @@ type Category =
3088
3200
  | "lint/correctness/noUnusedLabels"
3089
3201
  | "lint/correctness/noUnusedPrivateClassMembers"
3090
3202
  | "lint/correctness/noUnusedVariables"
3203
+ | "lint/correctness/noUselessContinue"
3091
3204
  | "lint/correctness/noVoidElementsWithChildren"
3092
3205
  | "lint/correctness/noVoidTypeReturn"
3093
3206
  | "lint/correctness/useArrayLiterals"
@@ -3102,129 +3215,114 @@ type Category =
3102
3215
  | "lint/nursery/noAwaitInLoop"
3103
3216
  | "lint/nursery/noBitwiseOperators"
3104
3217
  | "lint/nursery/noColorInvalidHex"
3105
- | "lint/nursery/noCommonJs"
3106
3218
  | "lint/nursery/noConsole"
3107
3219
  | "lint/nursery/noConstantBinaryExpression"
3108
- | "lint/nursery/noDescendingSpecificity"
3109
3220
  | "lint/nursery/noDestructuredProps"
3110
- | "lint/nursery/noDocumentCookie"
3111
- | "lint/nursery/noDocumentImportInPage"
3112
3221
  | "lint/nursery/noDoneCallback"
3113
3222
  | "lint/nursery/noDuplicateAtImportRules"
3114
- | "lint/nursery/noDuplicateCustomProperties"
3115
- | "lint/nursery/noDuplicateElseIf"
3116
- | "lint/nursery/noDuplicateProperties"
3117
- | "lint/nursery/noDuplicateFields"
3118
- | "lint/nursery/noDynamicNamespaceImportAccess"
3119
- | "lint/nursery/noEnum"
3120
- | "lint/nursery/noExportedImports"
3121
3223
  | "lint/nursery/noFloatingPromises"
3122
3224
  | "lint/nursery/noGlobalDirnameFilename"
3123
- | "lint/nursery/noHeadElement"
3124
- | "lint/nursery/noHeadImportInDocument"
3125
- | "lint/nursery/noImgElement"
3126
3225
  | "lint/nursery/noImportCycles"
3127
3226
  | "lint/nursery/noImportantInKeyframe"
3227
+ | "lint/nursery/noImportantStyles"
3128
3228
  | "lint/nursery/noInvalidDirectionInLinearGradient"
3129
3229
  | "lint/nursery/noInvalidGridAreas"
3130
3230
  | "lint/nursery/noInvalidPositionAtImportRule"
3131
- | "lint/nursery/noIrregularWhitespace"
3132
3231
  | "lint/nursery/noMissingGenericFamilyKeyword"
3133
- | "lint/nursery/noMissingVarFunction"
3134
- | "lint/nursery/noNestedTernary"
3135
3232
  | "lint/nursery/noNoninteractiveElementInteractions"
3136
- | "lint/nursery/noOctalEscape"
3137
- | "lint/nursery/noProcessEnv"
3138
3233
  | "lint/nursery/noProcessGlobal"
3139
3234
  | "lint/nursery/noReactSpecificProps"
3140
- | "lint/nursery/noRestrictedImports"
3141
- | "lint/nursery/noRestrictedTypes"
3235
+ | "lint/nursery/noRestrictedElements"
3142
3236
  | "lint/nursery/noSecrets"
3237
+ | "lint/nursery/noShadow"
3143
3238
  | "lint/nursery/noShorthandPropertyOverrides"
3144
- | "lint/nursery/noStaticElementInteractions"
3145
- | "lint/nursery/noSubstr"
3146
- | "lint/nursery/noTemplateCurlyInString"
3147
3239
  | "lint/nursery/noTsIgnore"
3148
3240
  | "lint/nursery/noUndeclaredDependencies"
3149
3241
  | "lint/nursery/noUnknownAtRule"
3150
3242
  | "lint/nursery/noUnknownFunction"
3151
3243
  | "lint/nursery/noUnknownMediaFeatureName"
3152
3244
  | "lint/nursery/noUnknownProperty"
3153
- | "lint/nursery/noUnknownPseudoClass"
3154
- | "lint/nursery/noUnknownPseudoClassSelector"
3155
- | "lint/nursery/noUnknownPseudoElement"
3156
3245
  | "lint/nursery/noUnknownSelectorPseudoElement"
3157
- | "lint/nursery/noUnknownTypeSelector"
3158
3246
  | "lint/nursery/noUnknownUnit"
3159
3247
  | "lint/nursery/noUnmatchableAnbSelector"
3248
+ | "lint/nursery/noUnresolvedImports"
3160
3249
  | "lint/nursery/noUnusedFunctionParameters"
3161
3250
  | "lint/nursery/noUnwantedPolyfillio"
3162
- | "lint/nursery/noUselessEscapeInRegex"
3251
+ | "lint/nursery/noUselessBackrefInRegex"
3163
3252
  | "lint/nursery/noUselessEscapeInString"
3164
- | "lint/nursery/noUselessStringRaw"
3165
3253
  | "lint/nursery/noUselessUndefined"
3166
- | "lint/nursery/noValueAtRule"
3167
- | "lint/nursery/useAdjacentOverloadSignatures"
3168
- | "lint/nursery/useAriaPropsSupportedByRole"
3169
- | "lint/nursery/useAtIndex"
3170
3254
  | "lint/nursery/useBiomeSuppressionComment"
3171
- | "lint/nursery/useCollapsedIf"
3172
- | "lint/nursery/useComponentExportOnlyModules"
3173
- | "lint/nursery/useConsistentCurlyBraces"
3174
- | "lint/nursery/useConsistentMemberAccessibility"
3175
3255
  | "lint/nursery/useConsistentObjectDefinition"
3176
- | "lint/nursery/useDeprecatedReason"
3256
+ | "lint/nursery/useExhaustiveSwitchCases"
3177
3257
  | "lint/nursery/useExplicitFunctionReturnType"
3178
3258
  | "lint/nursery/useExplicitType"
3179
3259
  | "lint/nursery/useExportsLast"
3180
3260
  | "lint/nursery/useForComponent"
3181
- | "lint/nursery/useGoogleFontDisplay"
3182
3261
  | "lint/nursery/useGoogleFontPreconnect"
3183
- | "lint/nursery/useGuardForIn"
3184
3262
  | "lint/nursery/useImportRestrictions"
3263
+ | "lint/nursery/useIterableCallbackReturn"
3185
3264
  | "lint/nursery/useJsxCurlyBraceConvention"
3186
3265
  | "lint/nursery/useNamedOperation"
3187
3266
  | "lint/nursery/useNamingConvention"
3267
+ | "lint/nursery/useNumericSeparators"
3188
3268
  | "lint/nursery/useParseIntRadix"
3269
+ | "lint/nursery/useSingleJsDocAsterisk"
3189
3270
  | "lint/nursery/useSortedClasses"
3190
3271
  | "lint/nursery/useSortedProperties"
3191
- | "lint/nursery/useStrictMode"
3192
3272
  | "lint/nursery/useSymbolDescription"
3193
- | "lint/nursery/useTrimStartEnd"
3194
- | "lint/nursery/useValidAutocomplete"
3195
3273
  | "lint/performance/noAccumulatingSpread"
3196
3274
  | "lint/performance/noBarrelFile"
3197
3275
  | "lint/performance/noDelete"
3276
+ | "lint/performance/noDynamicNamespaceImportAccess"
3277
+ | "lint/performance/noImgElement"
3198
3278
  | "lint/performance/noReExportAll"
3199
3279
  | "lint/performance/useTopLevelRegex"
3280
+ | "lint/security/noBlankTarget"
3200
3281
  | "lint/security/noDangerouslySetInnerHtml"
3201
3282
  | "lint/security/noDangerouslySetInnerHtmlWithChildren"
3202
3283
  | "lint/security/noGlobalEval"
3203
3284
  | "lint/style/noArguments"
3204
3285
  | "lint/style/noCommaOperator"
3286
+ | "lint/style/noCommonJs"
3205
3287
  | "lint/style/noDefaultExport"
3288
+ | "lint/style/noDescendingSpecificity"
3206
3289
  | "lint/style/noDoneCallback"
3290
+ | "lint/style/noEnum"
3291
+ | "lint/style/noExportedImports"
3292
+ | "lint/style/noHeadElement"
3207
3293
  | "lint/style/noImplicitBoolean"
3208
3294
  | "lint/style/noInferrableTypes"
3209
3295
  | "lint/style/noNamespace"
3210
3296
  | "lint/style/noNamespaceImport"
3211
3297
  | "lint/style/noNegationElse"
3298
+ | "lint/style/noNestedTernary"
3212
3299
  | "lint/style/noNonNullAssertion"
3213
3300
  | "lint/style/noParameterAssign"
3214
3301
  | "lint/style/noParameterProperties"
3302
+ | "lint/style/noProcessEnv"
3215
3303
  | "lint/style/noRestrictedGlobals"
3304
+ | "lint/style/noRestrictedImports"
3305
+ | "lint/style/noRestrictedTypes"
3216
3306
  | "lint/style/noShoutyConstants"
3307
+ | "lint/style/noSubstr"
3217
3308
  | "lint/style/noUnusedTemplateLiteral"
3218
3309
  | "lint/style/noUselessElse"
3310
+ | "lint/style/noValueAtRule"
3219
3311
  | "lint/style/noYodaExpression"
3220
3312
  | "lint/style/useAsConstAssertion"
3313
+ | "lint/style/useAtIndex"
3221
3314
  | "lint/style/useBlockStatements"
3222
3315
  | "lint/style/useCollapsedElseIf"
3316
+ | "lint/style/useCollapsedIf"
3317
+ | "lint/style/useComponentExportOnlyModules"
3223
3318
  | "lint/style/useConsistentArrayType"
3224
3319
  | "lint/style/useConsistentBuiltinInstantiation"
3320
+ | "lint/style/useConsistentCurlyBraces"
3321
+ | "lint/style/useConsistentMemberAccessibility"
3225
3322
  | "lint/style/useConst"
3226
3323
  | "lint/style/useDefaultParameterLast"
3227
3324
  | "lint/style/useDefaultSwitchClause"
3325
+ | "lint/style/useDeprecatedReason"
3228
3326
  | "lint/style/useEnumInitializers"
3229
3327
  | "lint/style/useExplicitLengthCheck"
3230
3328
  | "lint/style/useExponentiationOperator"
@@ -3248,6 +3346,7 @@ type Category =
3248
3346
  | "lint/style/useTemplate"
3249
3347
  | "lint/style/useThrowNewError"
3250
3348
  | "lint/style/useThrowOnlyError"
3349
+ | "lint/style/useTrimStartEnd"
3251
3350
  | "lint/suspicious/noApproximativeNumericConstant"
3252
3351
  | "lint/suspicious/noArrayIndexKey"
3253
3352
  | "lint/suspicious/noAssignInExpressions"
@@ -3262,14 +3361,20 @@ type Category =
3262
3361
  | "lint/suspicious/noConstEnum"
3263
3362
  | "lint/suspicious/noControlCharactersInRegex"
3264
3363
  | "lint/suspicious/noDebugger"
3364
+ | "lint/suspicious/noDocumentCookie"
3365
+ | "lint/suspicious/noDocumentImportInPage"
3265
3366
  | "lint/suspicious/noDoubleEquals"
3266
3367
  | "lint/suspicious/noDuplicateAtImportRules"
3267
3368
  | "lint/suspicious/noDuplicateCase"
3268
3369
  | "lint/suspicious/noDuplicateClassMembers"
3370
+ | "lint/suspicious/noDuplicateCustomProperties"
3371
+ | "lint/suspicious/noDuplicateElseIf"
3372
+ | "lint/suspicious/noDuplicateFields"
3269
3373
  | "lint/suspicious/noDuplicateFontNames"
3270
3374
  | "lint/suspicious/noDuplicateJsxProps"
3271
3375
  | "lint/suspicious/noDuplicateObjectKeys"
3272
3376
  | "lint/suspicious/noDuplicateParameters"
3377
+ | "lint/suspicious/noDuplicateProperties"
3273
3378
  | "lint/suspicious/noDuplicateSelectorsKeyframeBlock"
3274
3379
  | "lint/suspicious/noDuplicateTestHooks"
3275
3380
  | "lint/suspicious/noEmptyBlock"
@@ -3285,14 +3390,17 @@ type Category =
3285
3390
  | "lint/suspicious/noGlobalAssign"
3286
3391
  | "lint/suspicious/noGlobalIsFinite"
3287
3392
  | "lint/suspicious/noGlobalIsNan"
3393
+ | "lint/suspicious/noHeadImportInDocument"
3288
3394
  | "lint/suspicious/noImplicitAnyLet"
3289
3395
  | "lint/suspicious/noImportAssign"
3290
3396
  | "lint/suspicious/noImportantInKeyframe"
3397
+ | "lint/suspicious/noIrregularWhitespace"
3291
3398
  | "lint/suspicious/noLabelVar"
3292
3399
  | "lint/suspicious/noMisleadingCharacterClass"
3293
3400
  | "lint/suspicious/noMisleadingInstantiator"
3294
3401
  | "lint/suspicious/noMisplacedAssertion"
3295
3402
  | "lint/suspicious/noMisrefactoredShorthandAssign"
3403
+ | "lint/suspicious/noOctalEscape"
3296
3404
  | "lint/suspicious/noPrototypeBuiltins"
3297
3405
  | "lint/suspicious/noReactSpecificProps"
3298
3406
  | "lint/suspicious/noRedeclare"
@@ -3303,19 +3411,27 @@ type Category =
3303
3411
  | "lint/suspicious/noSkippedTests"
3304
3412
  | "lint/suspicious/noSparseArray"
3305
3413
  | "lint/suspicious/noSuspiciousSemicolonInJsx"
3414
+ | "lint/suspicious/noTemplateCurlyInString"
3306
3415
  | "lint/suspicious/noThenProperty"
3307
3416
  | "lint/suspicious/noUnsafeDeclarationMerging"
3308
3417
  | "lint/suspicious/noUnsafeNegation"
3309
3418
  | "lint/suspicious/noVar"
3419
+ | "lint/suspicious/useAdjacentOverloadSignatures"
3310
3420
  | "lint/suspicious/useAwait"
3311
3421
  | "lint/suspicious/useDefaultSwitchClauseLast"
3312
3422
  | "lint/suspicious/useErrorMessage"
3313
3423
  | "lint/suspicious/useGetterReturn"
3424
+ | "lint/suspicious/useGoogleFontDisplay"
3425
+ | "lint/suspicious/useGuardForIn"
3314
3426
  | "lint/suspicious/useIsArray"
3315
3427
  | "lint/suspicious/useNamespaceKeyword"
3316
3428
  | "lint/suspicious/useNumberToFixedDigitsArgument"
3429
+ | "lint/suspicious/useStrictMode"
3317
3430
  | "lint/suspicious/useValidTypeof"
3318
3431
  | "assist/source/useSortedKeys"
3432
+ | "assist/source/useSortedProperties"
3433
+ | "assist/source/useSortedAttributes"
3434
+ | "assist/source/organizeImports"
3319
3435
  | "syntax/correctness/noTypeOnlyImportAttributes"
3320
3436
  | "syntax/correctness/noSuperWithoutExtends"
3321
3437
  | "syntax/correctness/noInitializerWithDefinite"
@@ -3337,8 +3453,7 @@ type Category =
3337
3453
  | "internalError/panic"
3338
3454
  | "reporter/parse"
3339
3455
  | "reporter/format"
3340
- | "reporter/assist"
3341
- | "reporter/linter"
3456
+ | "reporter/violations"
3342
3457
  | "parse"
3343
3458
  | "lint"
3344
3459
  | "lint/a11y"
@@ -3353,6 +3468,7 @@ type Category =
3353
3468
  | "suppressions/parse"
3354
3469
  | "suppressions/unknownGroup"
3355
3470
  | "suppressions/unknownRule"
3471
+ | "suppressions/unknownAction"
3356
3472
  | "suppressions/unused"
3357
3473
  | "suppressions/incorrect"
3358
3474
  | "args/fileNotFound"
@@ -3531,16 +3647,31 @@ interface GetFormatterIRParams {
3531
3647
  path: BiomePath;
3532
3648
  projectKey: ProjectKey;
3533
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
+ }
3534
3662
  interface PullDiagnosticsParams {
3535
3663
  categories: RuleCategories;
3536
3664
  /**
3537
3665
  * Rules to apply on top of the configuration
3538
3666
  */
3539
3667
  enabledRules?: RuleCode[];
3540
- maxDiagnostics: number;
3541
3668
  only?: RuleCode[];
3542
3669
  path: BiomePath;
3543
3670
  projectKey: ProjectKey;
3671
+ /**
3672
+ * When `false` the diagnostics, don't have code frames of the code actions (fixes, suppressions, etc.)
3673
+ */
3674
+ pullCodeActions: boolean;
3544
3675
  skip?: RuleCode[];
3545
3676
  }
3546
3677
  type RuleCategories = RuleCategory[];
@@ -3726,6 +3857,9 @@ export class Workspace {
3726
3857
  getSyntaxTree(params: GetSyntaxTreeParams): GetSyntaxTreeResult;
3727
3858
  getControlFlowGraph(params: GetControlFlowGraphParams): string;
3728
3859
  getFormatterIr(params: GetFormatterIRParams): string;
3860
+ getTypeInfo(params: GetTypeInfoParams): string;
3861
+ getRegisteredTypes(params: GetRegisteredTypesParams): string;
3862
+ getSemanticModel(params: GetSemanticModelParams): string;
3729
3863
  changeFile(params: ChangeFileParams): void;
3730
3864
  closeFile(params: CloseFileParams): void;
3731
3865
  pullDiagnostics(params: PullDiagnosticsParams): PullDiagnosticsResult;