@biomejs/backend-jsonrpc 1.2.2 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/backend-jsonrpc","version":"1.2.2","main":"dist/index.js","scripts":{"test":"vitest","test:ci":"pnpm build && vitest --run","tsc":"tsc --noEmit","build":"tsc"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"npm/backend-jsonrpc"},"author":"Biome Developers and Contributors","bugs":"https://github.com/biomejs/biome/issues","description":"Bindings to the JSON-RPC Workspace API of the Biome daemon","keywords":["JavaScript","TypeScript","format","lint","toolchain"],"engines":{"node":">=14.*"},"license":"MIT","devDependencies":{"@types/node":"^18.7.2","typescript":"^4.8.2","vite":"^3.0.8","vitest":"^0.22.0"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.2.2","@biomejs/cli-win32-arm64":"1.2.2","@biomejs/cli-darwin-x64":"1.2.2","@biomejs/cli-darwin-arm64":"1.2.2","@biomejs/cli-linux-x64":"1.2.2","@biomejs/cli-linux-arm64":"1.2.2"}}
1
+ {"name":"@biomejs/backend-jsonrpc","version":"1.3.1","main":"dist/index.js","scripts":{"test":"vitest","test:ci":"pnpm build && vitest --run","tsc":"tsc --noEmit","build":"tsc"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"npm/backend-jsonrpc"},"author":"Biome Developers and Contributors","bugs":"https://github.com/biomejs/biome/issues","description":"Bindings to the JSON-RPC Workspace API of the Biome daemon","keywords":["JavaScript","TypeScript","format","lint","toolchain"],"engines":{"node":">=14.*"},"license":"MIT","devDependencies":{"@types/node":"^18.7.2","typescript":"^4.8.2","vite":"^3.0.8","vitest":"^0.22.0"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.3.1","@biomejs/cli-win32-arm64":"1.3.1","@biomejs/cli-darwin-x64":"1.3.1","@biomejs/cli-darwin-arm64":"1.3.1","@biomejs/cli-linux-x64":"1.3.1","@biomejs/cli-linux-arm64":"1.3.1"}}
package/src/command.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Gets the path of the Rome binary for the current platform
2
+ * Gets the path of the Biome binary for the current platform
3
3
  *
4
4
  * @returns Filesystem path to the binary, or null if no prebuilt distribution exists for the current platform
5
5
  */
package/src/index.ts CHANGED
@@ -27,7 +27,7 @@ export async function createWorkspace(): Promise<Workspace | null> {
27
27
  * instance through the JSON-RPC protocol, using the provided command to spawn
28
28
  * the daemon if necessary
29
29
  *
30
- * @param command Path to the Rome binary distribution
30
+ * @param command Path to the Biome binary distribution
31
31
  * @returns A Workspace client, or null if the underlying platform is not supported
32
32
  */
33
33
  export async function createWorkspaceWithBinary(
package/src/socket.ts CHANGED
@@ -29,9 +29,9 @@ function getSocket(command: string): Promise<string> {
29
29
  }
30
30
 
31
31
  /**
32
- * Ensure the Rome daemon server is running and create a Socket connected to the RPC channel
32
+ * Ensure the Biome daemon server is running and create a Socket connected to the RPC channel
33
33
  *
34
- * @param command Path to the Rome daemon binary
34
+ * @param command Path to the Biome daemon binary
35
35
  * @returns Socket instance connected to the daemon
36
36
  */
37
37
  export async function createSocket(command: string): Promise<Socket> {
package/src/transport.ts CHANGED
@@ -96,7 +96,7 @@ interface PendingRequest {
96
96
  const MIME_JSONRPC = "application/vscode-jsonrpc";
97
97
 
98
98
  /**
99
- * Implements the Rome daemon server JSON-RPC protocol over a Socket instance
99
+ * Implements the Biome daemon server JSON-RPC protocol over a Socket instance
100
100
  */
101
101
  export class Transport {
102
102
  /**
package/src/workspace.ts CHANGED
@@ -55,6 +55,10 @@ export interface Configuration {
55
55
  * The configuration of the import sorting
56
56
  */
57
57
  organizeImports?: OrganizeImports;
58
+ /**
59
+ * A list of granular patterns that should be applied only to a sub set of files
60
+ */
61
+ overrides?: Overrides;
58
62
  /**
59
63
  * The configuration of the VCS integration
60
64
  */
@@ -66,13 +70,17 @@ export type StringSet = string[];
66
70
  */
67
71
  export interface FilesConfiguration {
68
72
  /**
69
- * A list of Unix shell style patterns. Biome tools will ignore files/folders that will match these patterns.
73
+ * A list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns.
70
74
  */
71
75
  ignore?: StringSet;
72
76
  /**
73
77
  * Tells Biome to not emit diagnostics when handling files that doesn't know
74
78
  */
75
79
  ignoreUnknown?: boolean;
80
+ /**
81
+ * A list of Unix shell style patterns. Biome will handle only those files/folders that will match these patterns.
82
+ */
83
+ include?: StringSet;
76
84
  /**
77
85
  * The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
78
86
  */
@@ -92,13 +100,21 @@ export interface FormatterConfiguration {
92
100
  */
93
101
  ignore?: StringSet;
94
102
  /**
95
- * The size of the indentation, 2 by default
103
+ * A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
104
+ */
105
+ include?: StringSet;
106
+ /**
107
+ * The size of the indentation, 2 by default (deprecated, use `indent-width`)
96
108
  */
97
109
  indentSize?: number;
98
110
  /**
99
111
  * The indent style.
100
112
  */
101
113
  indentStyle?: PlainIndentStyle;
114
+ /**
115
+ * The size of the indentation, 2 by default
116
+ */
117
+ indentWidth?: number;
102
118
  /**
103
119
  * What's the max width of a line. Defaults to 80.
104
120
  */
@@ -146,6 +162,10 @@ export interface LinterConfiguration {
146
162
  * A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
147
163
  */
148
164
  ignore?: StringSet;
165
+ /**
166
+ * A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
167
+ */
168
+ include?: StringSet;
149
169
  /**
150
170
  * List of rules
151
171
  */
@@ -160,6 +180,13 @@ export interface OrganizeImports {
160
180
  * A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
161
181
  */
162
182
  ignore?: StringSet;
183
+ /**
184
+ * A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
185
+ */
186
+ include?: StringSet;
187
+ }
188
+ export interface Overrides {
189
+ list: OverridePattern[];
163
190
  }
164
191
  /**
165
192
  * Set of properties to integrate Biome with a VCS software.
@@ -211,6 +238,10 @@ export interface JavascriptFormatter {
211
238
  * The indent style applied to JavaScript (and its super languages) files.
212
239
  */
213
240
  indentStyle?: PlainIndentStyle;
241
+ /**
242
+ * The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
243
+ */
244
+ indentWidth?: number;
214
245
  /**
215
246
  * The type of quotes used in JSX. Defaults to double.
216
247
  */
@@ -261,6 +292,10 @@ export interface JsonFormatter {
261
292
  * The indent style applied to JSON (and its super languages) files.
262
293
  */
263
294
  indentStyle?: PlainIndentStyle;
295
+ /**
296
+ * The size of the indentation applied to JSON (and its super languages) files. Default to 2.
297
+ */
298
+ indentWidth?: number;
264
299
  /**
265
300
  * What's the max width of a line, applied to JSON (and its super languages) files. Defaults to 80.
266
301
  */
@@ -274,6 +309,10 @@ export interface JsonParser {
274
309
  * Allow parsing comments in `.json` files
275
310
  */
276
311
  allowComments?: boolean;
312
+ /**
313
+ * Allow parsing trailing commas in `.json` files
314
+ */
315
+ allowTrailingCommas?: boolean;
277
316
  }
278
317
  export interface Rules {
279
318
  a11y?: A11y;
@@ -293,6 +332,36 @@ export interface Rules {
293
332
  style?: Style;
294
333
  suspicious?: Suspicious;
295
334
  }
335
+ export interface OverridePattern {
336
+ /**
337
+ * Specific configuration for the Json language
338
+ */
339
+ formatter?: OverrideFormatterConfiguration;
340
+ /**
341
+ * A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
342
+ */
343
+ ignore?: StringSet;
344
+ /**
345
+ * A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
346
+ */
347
+ include?: StringSet;
348
+ /**
349
+ * Specific configuration for the JavaScript language
350
+ */
351
+ javascript?: JavascriptConfiguration;
352
+ /**
353
+ * Specific configuration for the Json language
354
+ */
355
+ json?: JsonConfiguration;
356
+ /**
357
+ * Specific configuration for the Json language
358
+ */
359
+ linter?: OverrideLinterConfiguration;
360
+ /**
361
+ * Specific configuration for the Json language
362
+ */
363
+ organizeImports?: OverrideOrganizeImportsConfiguration;
364
+ }
296
365
  export type VcsClientKind = "git";
297
366
  export type ArrowParentheses = "always" | "asNeeded";
298
367
  export type QuoteStyle = "double" | "single";
@@ -431,6 +500,10 @@ export interface Complexity {
431
500
  * Disallow primitive type aliases and misleading types.
432
501
  */
433
502
  noBannedTypes?: RuleConfiguration;
503
+ /**
504
+ * Disallow functions that exceed a given Cognitive Complexity score.
505
+ */
506
+ noExcessiveCognitiveComplexity?: RuleConfiguration;
434
507
  /**
435
508
  * Disallow unnecessary boolean casts
436
509
  */
@@ -440,7 +513,7 @@ export interface Complexity {
440
513
  */
441
514
  noForEach?: RuleConfiguration;
442
515
  /**
443
- * Disallow unclear usage of multiple space characters in regular expression literals
516
+ * Disallow unclear usage of consecutive space characters in regular expression literals
444
517
  */
445
518
  noMultipleSpacesInRegularExpressionLiterals?: RuleConfiguration;
446
519
  /**
@@ -483,6 +556,10 @@ export interface Complexity {
483
556
  * Disallow using any or unknown as type constraint.
484
557
  */
485
558
  noUselessTypeConstraint?: RuleConfiguration;
559
+ /**
560
+ * Disallow the use of void operators, which is not a familiar operator.
561
+ */
562
+ noVoid?: RuleConfiguration;
486
563
  /**
487
564
  * Disallow with statements in non-strict contexts.
488
565
  */
@@ -597,7 +674,7 @@ export interface Correctness {
597
674
  */
598
675
  noUnreachable?: RuleConfiguration;
599
676
  /**
600
- * Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass
677
+ * Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass
601
678
  */
602
679
  noUnreachableSuper?: RuleConfiguration;
603
680
  /**
@@ -628,6 +705,14 @@ export interface Correctness {
628
705
  * It enables the recommended rules for this group
629
706
  */
630
707
  recommended?: boolean;
708
+ /**
709
+ * Enforce all dependencies are correctly specified in a React hook.
710
+ */
711
+ useExhaustiveDependencies?: RuleConfiguration;
712
+ /**
713
+ * Enforce that all React hooks are being called from the Top Level component functions.
714
+ */
715
+ useHookAtTopLevel?: RuleConfiguration;
631
716
  /**
632
717
  * Require calls to isNaN() when checking for NaN.
633
718
  */
@@ -650,69 +735,77 @@ export interface Nursery {
650
735
  */
651
736
  all?: boolean;
652
737
  /**
653
- * Disallow the use of spread (...) syntax on accumulators.
654
- */
655
- noAccumulatingSpread?: RuleConfiguration;
656
- /**
657
- * Disallow void type outside of generic or return types.
738
+ * Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type.
658
739
  */
659
- noConfusingVoidType?: RuleConfiguration;
740
+ noApproximativeNumericConstant?: RuleConfiguration;
660
741
  /**
661
742
  * Disallow two keys with the same name inside a JSON object.
662
743
  */
663
744
  noDuplicateJsonKeys?: RuleConfiguration;
664
745
  /**
665
- * Disallow functions that exceed a given complexity score.
746
+ * Disallow empty block statements and static blocks.
666
747
  */
667
- noExcessiveComplexity?: RuleConfiguration;
748
+ noEmptyBlockStatements?: RuleConfiguration;
668
749
  /**
669
- * Disallow fallthrough of switch clauses.
750
+ * Disallow empty character classes in regular expression literals.
670
751
  */
671
- noFallthroughSwitchClause?: RuleConfiguration;
752
+ noEmptyCharacterClassInRegex?: RuleConfiguration;
672
753
  /**
673
- * Use Number.isFinite instead of global isFinite.
754
+ * Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
674
755
  */
675
- noGlobalIsFinite?: RuleConfiguration;
756
+ noInteractiveElementToNoninteractiveRole?: RuleConfiguration;
676
757
  /**
677
- * Use Number.isNaN instead of global isNaN.
758
+ * Disallow new operators with global non-constructor functions.
678
759
  */
679
- noGlobalIsNan?: RuleConfiguration;
760
+ noInvalidNewBuiltin?: RuleConfiguration;
680
761
  /**
681
- * Disallow the use of void operators, which is not a familiar operator.
762
+ * Enforce proper usage of new and constructor.
682
763
  */
683
- noVoid?: RuleConfiguration;
764
+ noMisleadingInstantiator?: RuleConfiguration;
765
+ /**
766
+ * Disallow shorthand assign when variable appears on both sides.
767
+ */
768
+ noMisrefactoredShorthandAssign?: RuleConfiguration;
769
+ /**
770
+ * Disallow unused imports.
771
+ */
772
+ noUnusedImports?: RuleConfiguration;
773
+ /**
774
+ * Disallow else block when the if block breaks early.
775
+ */
776
+ noUselessElse?: RuleConfiguration;
777
+ /**
778
+ * Disallow unnecessary nested block statements.
779
+ */
780
+ noUselessLoneBlockStatements?: RuleConfiguration;
684
781
  /**
685
782
  * It enables the recommended rules for this group
686
783
  */
687
784
  recommended?: boolean;
688
785
  /**
689
- * Use arrow functions over function expressions.
786
+ * Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
690
787
  */
691
- useArrowFunction?: RuleConfiguration;
788
+ useAriaActivedescendantWithTabindex?: RuleConfiguration;
692
789
  /**
693
- * Enforce using else if instead of nested if in else clauses.
790
+ * Use arrow functions over function expressions.
694
791
  */
695
- useCollapsedElseIf?: RuleConfiguration;
792
+ useArrowFunction?: RuleConfiguration;
696
793
  /**
697
- * Enforce all dependencies are correctly specified.
794
+ * Enforce the use of as const over literal type and type annotation.
698
795
  */
699
- useExhaustiveDependencies?: RuleConfiguration;
796
+ useAsConstAssertion?: RuleConfiguration;
700
797
  /**
701
798
  * Enforce the use of import type when an import only has specifiers with type qualifier.
702
799
  */
703
800
  useGroupedTypeImport?: RuleConfiguration;
704
- /**
705
- * Enforce that all React hooks are being called from the Top Level component functions.
706
- */
707
- useHookAtTopLevel?: RuleConfiguration;
708
801
  /**
709
802
  * Disallows package private imports.
710
803
  */
711
804
  useImportRestrictions?: RuleConfiguration;
712
805
  /**
713
- * Use Array.isArray() instead of instanceof Array.
806
+ * Require assignment operator shorthand where possible.
714
807
  */
715
- useIsArray?: RuleConfiguration;
808
+ useShorthandAssign?: RuleConfiguration;
716
809
  }
717
810
  /**
718
811
  * A list of rules that belong to this group
@@ -722,6 +815,10 @@ export interface Performance {
722
815
  * It enables ALL rules for this group.
723
816
  */
724
817
  all?: boolean;
818
+ /**
819
+ * Disallow the use of spread (...) syntax on accumulators.
820
+ */
821
+ noAccumulatingSpread?: RuleConfiguration;
725
822
  /**
726
823
  * Disallow the use of the delete operator.
727
824
  */
@@ -781,7 +878,7 @@ export interface Style {
781
878
  */
782
879
  noNamespace?: RuleConfiguration;
783
880
  /**
784
- * Disallow negation in the condition of an if statement if it has an else clause
881
+ * Disallow negation in the condition of an if statement if it has an else clause.
785
882
  */
786
883
  noNegationElse?: RuleConfiguration;
787
884
  /**
@@ -817,9 +914,13 @@ export interface Style {
817
914
  */
818
915
  recommended?: boolean;
819
916
  /**
820
- * Requires following curly brace conventions. JavaScript allows the omission of curly braces when a block contains only one statement. However, it is considered by many to be best practice to never omit curly braces around blocks, even when they are optional, because it can lead to bugs and reduces code clarity.
917
+ * Requires following curly brace conventions.
821
918
  */
822
919
  useBlockStatements?: RuleConfiguration;
920
+ /**
921
+ * Enforce using else if instead of nested if in else clauses.
922
+ */
923
+ useCollapsedElseIf?: RuleConfiguration;
823
924
  /**
824
925
  * Require const declarations for variables that are never reassigned after declared.
825
926
  */
@@ -873,7 +974,7 @@ export interface Style {
873
974
  */
874
975
  useTemplate?: RuleConfiguration;
875
976
  /**
876
- * Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed
977
+ * Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
877
978
  */
878
979
  useWhile?: RuleConfiguration;
879
980
  }
@@ -917,6 +1018,10 @@ export interface Suspicious {
917
1018
  * Disallow labeled statements that are not loops.
918
1019
  */
919
1020
  noConfusingLabels?: RuleConfiguration;
1021
+ /**
1022
+ * Disallow void type outside of generic or return types.
1023
+ */
1024
+ noConfusingVoidType?: RuleConfiguration;
920
1025
  /**
921
1026
  * Disallow the use of console.log
922
1027
  */
@@ -938,7 +1043,7 @@ export interface Suspicious {
938
1043
  */
939
1044
  noDoubleEquals?: RuleConfiguration;
940
1045
  /**
941
- * Disallow duplicate case labels. If a switch statement has duplicate test expressions in case clauses, it is likely that a programmer copied a case clause but forgot to change the test expression.
1046
+ * Disallow duplicate case labels.
942
1047
  */
943
1048
  noDuplicateCase?: RuleConfiguration;
944
1049
  /**
@@ -950,7 +1055,7 @@ export interface Suspicious {
950
1055
  */
951
1056
  noDuplicateJsxProps?: RuleConfiguration;
952
1057
  /**
953
- * Prevents object literals having more than one property declaration for the same name. If an object property with the same name is defined multiple times (except when combining a getter with a setter), only the last definition makes it into the object and previous definitions are ignored, which is likely a mistake.
1058
+ * Prevents object literals having more than one property declaration for the same name.
954
1059
  */
955
1060
  noDuplicateObjectKeys?: RuleConfiguration;
956
1061
  /**
@@ -969,10 +1074,22 @@ export interface Suspicious {
969
1074
  * Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
970
1075
  */
971
1076
  noExtraNonNullAssertion?: RuleConfiguration;
1077
+ /**
1078
+ * Disallow fallthrough of switch clauses.
1079
+ */
1080
+ noFallthroughSwitchClause?: RuleConfiguration;
972
1081
  /**
973
1082
  * Disallow reassigning function declarations.
974
1083
  */
975
1084
  noFunctionAssign?: RuleConfiguration;
1085
+ /**
1086
+ * Use Number.isFinite instead of global isFinite.
1087
+ */
1088
+ noGlobalIsFinite?: RuleConfiguration;
1089
+ /**
1090
+ * Use Number.isNaN instead of global isNaN.
1091
+ */
1092
+ noGlobalIsNan?: RuleConfiguration;
976
1093
  /**
977
1094
  * Disallow assigning to imported bindings
978
1095
  */
@@ -1025,6 +1142,10 @@ export interface Suspicious {
1025
1142
  * Enforce get methods to always return a value.
1026
1143
  */
1027
1144
  useGetterReturn?: RuleConfiguration;
1145
+ /**
1146
+ * Use Array.isArray() instead of instanceof Array.
1147
+ */
1148
+ useIsArray?: RuleConfiguration;
1028
1149
  /**
1029
1150
  * Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
1030
1151
  */
@@ -1034,6 +1155,45 @@ export interface Suspicious {
1034
1155
  */
1035
1156
  useValidTypeof?: RuleConfiguration;
1036
1157
  }
1158
+ export interface OverrideFormatterConfiguration {
1159
+ enabled?: boolean;
1160
+ /**
1161
+ * Stores whether formatting should be allowed to proceed if a given file has syntax errors
1162
+ */
1163
+ formatWithErrors?: boolean;
1164
+ /**
1165
+ * The size of the indentation, 2 by default (deprecated, use `indent-width`)
1166
+ */
1167
+ indentSize?: number;
1168
+ /**
1169
+ * The indent style.
1170
+ */
1171
+ indentStyle?: PlainIndentStyle;
1172
+ /**
1173
+ * The size of the indentation, 2 by default
1174
+ */
1175
+ indentWidth?: number;
1176
+ /**
1177
+ * What's the max width of a line. Defaults to 80.
1178
+ */
1179
+ lineWidth?: LineWidth;
1180
+ }
1181
+ export interface OverrideLinterConfiguration {
1182
+ /**
1183
+ * if `false`, it disables the feature and the linter won't be executed. `true` by default
1184
+ */
1185
+ enabled?: boolean;
1186
+ /**
1187
+ * List of rules
1188
+ */
1189
+ rules?: Rules;
1190
+ }
1191
+ export interface OverrideOrganizeImportsConfiguration {
1192
+ /**
1193
+ * if `false`, it disables the feature and the linter won't be executed. `true` by default
1194
+ */
1195
+ enabled?: boolean;
1196
+ }
1037
1197
  export type RuleConfiguration = RulePlainConfiguration | RuleWithOptions;
1038
1198
  export type RulePlainConfiguration = "warn" | "error" | "off";
1039
1199
  export interface RuleWithOptions {
@@ -1047,7 +1207,7 @@ export type PossibleOptions =
1047
1207
  | RestrictedGlobalsOptions
1048
1208
  | null;
1049
1209
  /**
1050
- * Options for the rule `noNestedModuleImports`.
1210
+ * Options for the rule `noExcessiveCognitiveComplexity`.
1051
1211
  */
1052
1212
  export interface ComplexityOptions {
1053
1213
  /**
@@ -1202,7 +1362,6 @@ export type Category =
1202
1362
  | "lint/a11y/noSvgWithoutTitle"
1203
1363
  | "lint/a11y/useAltText"
1204
1364
  | "lint/a11y/useAnchorContent"
1205
- | "lint/a11y/useValidAriaValues"
1206
1365
  | "lint/a11y/useAriaPropsForRole"
1207
1366
  | "lint/a11y/useButtonType"
1208
1367
  | "lint/a11y/useHeadingContent"
@@ -1213,8 +1372,10 @@ export type Category =
1213
1372
  | "lint/a11y/useMediaCaption"
1214
1373
  | "lint/a11y/useValidAnchor"
1215
1374
  | "lint/a11y/useValidAriaProps"
1375
+ | "lint/a11y/useValidAriaValues"
1216
1376
  | "lint/a11y/useValidLang"
1217
1377
  | "lint/complexity/noBannedTypes"
1378
+ | "lint/complexity/noExcessiveCognitiveComplexity"
1218
1379
  | "lint/complexity/noExtraBooleanCast"
1219
1380
  | "lint/complexity/noForEach"
1220
1381
  | "lint/complexity/noMultipleSpacesInRegularExpressionLiterals"
@@ -1228,6 +1389,7 @@ export type Category =
1228
1389
  | "lint/complexity/noUselessSwitchCase"
1229
1390
  | "lint/complexity/noUselessThisAlias"
1230
1391
  | "lint/complexity/noUselessTypeConstraint"
1392
+ | "lint/complexity/noVoid"
1231
1393
  | "lint/complexity/noWith"
1232
1394
  | "lint/complexity/useFlatMap"
1233
1395
  | "lint/complexity/useLiteralKeys"
@@ -1260,25 +1422,30 @@ export type Category =
1260
1422
  | "lint/correctness/noUnusedVariables"
1261
1423
  | "lint/correctness/noVoidElementsWithChildren"
1262
1424
  | "lint/correctness/noVoidTypeReturn"
1425
+ | "lint/correctness/useExhaustiveDependencies"
1426
+ | "lint/correctness/useHookAtTopLevel"
1263
1427
  | "lint/correctness/useIsNan"
1264
1428
  | "lint/correctness/useValidForDirection"
1265
1429
  | "lint/correctness/useYield"
1266
- | "lint/nursery/noAccumulatingSpread"
1267
- | "lint/nursery/noConfusingVoidType"
1430
+ | "lint/nursery/noApproximativeNumericConstant"
1268
1431
  | "lint/nursery/noDuplicateJsonKeys"
1269
- | "lint/nursery/noExcessiveComplexity"
1270
- | "lint/nursery/noFallthroughSwitchClause"
1271
- | "lint/nursery/noGlobalIsFinite"
1272
- | "lint/nursery/noGlobalIsNan"
1273
- | "lint/nursery/noVoid"
1432
+ | "lint/nursery/noEmptyBlockStatements"
1433
+ | "lint/nursery/noEmptyCharacterClassInRegex"
1434
+ | "lint/nursery/noInteractiveElementToNoninteractiveRole"
1435
+ | "lint/nursery/noInvalidNewBuiltin"
1436
+ | "lint/nursery/noMisleadingInstantiator"
1437
+ | "lint/nursery/noMisrefactoredShorthandAssign"
1438
+ | "lint/nursery/noUnusedImports"
1439
+ | "lint/nursery/noUselessElse"
1440
+ | "lint/nursery/noUselessLoneBlockStatements"
1441
+ | "lint/nursery/useAriaActivedescendantWithTabindex"
1274
1442
  | "lint/nursery/useArrowFunction"
1443
+ | "lint/nursery/useAsConstAssertion"
1275
1444
  | "lint/nursery/useBiomeSuppressionComment"
1276
- | "lint/nursery/useCollapsedElseIf"
1277
- | "lint/nursery/useExhaustiveDependencies"
1278
1445
  | "lint/nursery/useGroupedTypeImport"
1279
- | "lint/nursery/useHookAtTopLevel"
1280
1446
  | "lint/nursery/useImportRestrictions"
1281
- | "lint/nursery/useIsArray"
1447
+ | "lint/nursery/useShorthandAssign"
1448
+ | "lint/performance/noAccumulatingSpread"
1282
1449
  | "lint/performance/noDelete"
1283
1450
  | "lint/security/noDangerouslySetInnerHtml"
1284
1451
  | "lint/security/noDangerouslySetInnerHtmlWithChildren"
@@ -1296,6 +1463,7 @@ export type Category =
1296
1463
  | "lint/style/noUnusedTemplateLiteral"
1297
1464
  | "lint/style/noVar"
1298
1465
  | "lint/style/useBlockStatements"
1466
+ | "lint/style/useCollapsedElseIf"
1299
1467
  | "lint/style/useConst"
1300
1468
  | "lint/style/useDefaultParameterLast"
1301
1469
  | "lint/style/useEnumInitializers"
@@ -1318,6 +1486,7 @@ export type Category =
1318
1486
  | "lint/suspicious/noCommentText"
1319
1487
  | "lint/suspicious/noCompareNegZero"
1320
1488
  | "lint/suspicious/noConfusingLabels"
1489
+ | "lint/suspicious/noConfusingVoidType"
1321
1490
  | "lint/suspicious/noConsoleLog"
1322
1491
  | "lint/suspicious/noConstEnum"
1323
1492
  | "lint/suspicious/noControlCharactersInRegex"
@@ -1331,7 +1500,10 @@ export type Category =
1331
1500
  | "lint/suspicious/noEmptyInterface"
1332
1501
  | "lint/suspicious/noExplicitAny"
1333
1502
  | "lint/suspicious/noExtraNonNullAssertion"
1503
+ | "lint/suspicious/noFallthroughSwitchClause"
1334
1504
  | "lint/suspicious/noFunctionAssign"
1505
+ | "lint/suspicious/noGlobalIsFinite"
1506
+ | "lint/suspicious/noGlobalIsNan"
1335
1507
  | "lint/suspicious/noImportAssign"
1336
1508
  | "lint/suspicious/noLabelVar"
1337
1509
  | "lint/suspicious/noPrototypeBuiltins"
@@ -1344,6 +1516,7 @@ export type Category =
1344
1516
  | "lint/suspicious/noUnsafeNegation"
1345
1517
  | "lint/suspicious/useDefaultSwitchClauseLast"
1346
1518
  | "lint/suspicious/useGetterReturn"
1519
+ | "lint/suspicious/useIsArray"
1347
1520
  | "lint/suspicious/useNamespaceKeyword"
1348
1521
  | "lint/suspicious/useValidTypeof"
1349
1522
  | "files/missingHandler"
@@ -1439,6 +1612,8 @@ export type MarkupElement =
1439
1612
  | "Success"
1440
1613
  | "Warn"
1441
1614
  | "Info"
1615
+ | "Debug"
1616
+ | "Trace"
1442
1617
  | "Inverse"
1443
1618
  | { Hyperlink: { href: string } };
1444
1619
  export type CompressedOp =