oxlint-tailwindcss 1.10.1 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -3
- package/dist/index.cjs +338 -80
- package/dist/index.d.cts +16 -26
- package/dist/index.d.mts +16 -26
- package/dist/index.mjs +338 -80
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@oxlint+plugins@1.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@oxlint+plugins@1.82.0/node_modules/@oxlint/plugins/index.d.ts
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region src-js/plugins/tokens.d.ts
|
|
4
4
|
/**
|
|
@@ -400,8 +400,6 @@ type VisitorWithHooks = VisitorObject & {
|
|
|
400
400
|
};
|
|
401
401
|
interface Node extends Span {}
|
|
402
402
|
type NodeOrToken = Node | TokenType | CommentType;
|
|
403
|
-
//#endregion
|
|
404
|
-
//#region src-js/plugins/location.d.ts
|
|
405
403
|
/**
|
|
406
404
|
* Range of source offsets.
|
|
407
405
|
*/
|
|
@@ -1768,8 +1766,6 @@ type LogicalOperator = "||" | "&&" | "??";
|
|
|
1768
1766
|
type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
1769
1767
|
type UpdateOperator = "++" | "--";
|
|
1770
1768
|
type Node$1 = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive$1 | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function$1 | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
|
|
1771
|
-
//#endregion
|
|
1772
|
-
//#region src-js/plugins/scope.d.ts
|
|
1773
1769
|
interface Scope {
|
|
1774
1770
|
type: ScopeType;
|
|
1775
1771
|
isStrict: boolean;
|
|
@@ -1847,8 +1843,6 @@ declare function getScope(node: Node$1): Scope;
|
|
|
1847
1843
|
* @returns `true` if a variable with the given name was found and marked as used, otherwise `false`
|
|
1848
1844
|
*/
|
|
1849
1845
|
declare function markVariableAsUsed(name: string, refNode?: Node$1): boolean;
|
|
1850
|
-
//#endregion
|
|
1851
|
-
//#region src-js/plugins/comments_methods.d.ts
|
|
1852
1846
|
/**
|
|
1853
1847
|
* Retrieve an array containing all comments in the source code.
|
|
1854
1848
|
* @returns Array of `Comment`s in order they appear in source.
|
|
@@ -1916,8 +1910,6 @@ declare function getJSDocComment(node: Node): CommentType | null;
|
|
|
1916
1910
|
//#endregion
|
|
1917
1911
|
//#region src-js/plugins/tokens_and_comments.d.ts
|
|
1918
1912
|
type TokenOrComment = TokenType | CommentType;
|
|
1919
|
-
//#endregion
|
|
1920
|
-
//#region src-js/plugins/tokens_methods.d.ts
|
|
1921
1913
|
/**
|
|
1922
1914
|
* Options for various `SourceCode` methods e.g. `getFirstToken`.
|
|
1923
1915
|
*/
|
|
@@ -2167,8 +2159,6 @@ declare function isSpaceBetween(first: NodeOrToken, second: NodeOrToken): boolea
|
|
|
2167
2159
|
* any of the tokens found between the two given nodes or tokens.
|
|
2168
2160
|
*/
|
|
2169
2161
|
declare function isSpaceBetweenTokens(first: NodeOrToken, second: NodeOrToken): boolean;
|
|
2170
|
-
//#endregion
|
|
2171
|
-
//#region src-js/plugins/directives.d.ts
|
|
2172
2162
|
interface Problem {
|
|
2173
2163
|
ruleId: string | null;
|
|
2174
2164
|
message: string;
|
|
@@ -2428,7 +2418,7 @@ type Options = JsonValue[];
|
|
|
2428
2418
|
*/
|
|
2429
2419
|
type RuleOptionsSchema = JSONSchema4 | JSONSchema4[] | false;
|
|
2430
2420
|
//#endregion
|
|
2431
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2421
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-any.d.ts
|
|
2432
2422
|
/**
|
|
2433
2423
|
Returns a boolean for whether the given type is `any`.
|
|
2434
2424
|
|
|
@@ -2459,7 +2449,7 @@ const anyA = get(anyObject, 'a');
|
|
|
2459
2449
|
*/
|
|
2460
2450
|
type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
|
|
2461
2451
|
//#endregion
|
|
2462
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2452
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-optional-key-of.d.ts
|
|
2463
2453
|
/**
|
|
2464
2454
|
Returns a boolean for whether the given key is an optional key of type.
|
|
2465
2455
|
|
|
@@ -2502,7 +2492,7 @@ type T5 = IsOptionalKeyOf<User | Admin, 'surname'>;
|
|
|
2502
2492
|
*/
|
|
2503
2493
|
type IsOptionalKeyOf<Type extends object, Key extends keyof Type> = IsAny<Type | Key> extends true ? never : Key extends keyof Type ? Type extends Record<Key, Type[Key]> ? false : true : false;
|
|
2504
2494
|
//#endregion
|
|
2505
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2495
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/optional-keys-of.d.ts
|
|
2506
2496
|
/**
|
|
2507
2497
|
Extract all optional keys from the given type.
|
|
2508
2498
|
|
|
@@ -2540,7 +2530,7 @@ type OptionalKeysOf<Type extends object> = Type extends unknown // For distribut
|
|
|
2540
2530
|
? (keyof { [Key in keyof Type as IsOptionalKeyOf<Type, Key> extends false ? never : Key]: never; }) & keyof Type // Intersect with `keyof Type` to ensure result of `OptionalKeysOf<Type>` is always assignable to `keyof Type`
|
|
2541
2531
|
: never; // Should never happen
|
|
2542
2532
|
//#endregion
|
|
2543
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2533
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/required-keys-of.d.ts
|
|
2544
2534
|
/**
|
|
2545
2535
|
Extract all required keys from the given type.
|
|
2546
2536
|
|
|
@@ -2574,7 +2564,7 @@ const validator3 = createValidation<User>('luckyNumber', value => value > 0);
|
|
|
2574
2564
|
type RequiredKeysOf<Type extends object> = Type extends unknown // For distributing `Type`
|
|
2575
2565
|
? Exclude<keyof Type, OptionalKeysOf<Type>> : never; // Should never happen
|
|
2576
2566
|
//#endregion
|
|
2577
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2567
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-never.d.ts
|
|
2578
2568
|
/**
|
|
2579
2569
|
Returns a boolean for whether the given type is `never`.
|
|
2580
2570
|
|
|
@@ -2630,7 +2620,7 @@ type B = IsTrueFixed<never>;
|
|
|
2630
2620
|
*/
|
|
2631
2621
|
type IsNever<T> = [T] extends [never] ? true : false;
|
|
2632
2622
|
//#endregion
|
|
2633
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2623
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/if.d.ts
|
|
2634
2624
|
/**
|
|
2635
2625
|
An if-else-like type that resolves depending on whether the given `boolean` type is `true` or `false`.
|
|
2636
2626
|
|
|
@@ -2725,7 +2715,7 @@ type Works = IncludesWithoutIf<HundredZeroes, '1'>;
|
|
|
2725
2715
|
*/
|
|
2726
2716
|
type If<Type extends boolean, IfBranch, ElseBranch> = IsNever<Type> extends true ? ElseBranch : Type extends true ? IfBranch : ElseBranch;
|
|
2727
2717
|
//#endregion
|
|
2728
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2718
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/internal/type.d.ts
|
|
2729
2719
|
/**
|
|
2730
2720
|
An if-else-like type that resolves depending on whether the given type is `any` or `never`.
|
|
2731
2721
|
|
|
@@ -2776,7 +2766,7 @@ type IfNotAnyOrNever<T, Cases extends {
|
|
|
2776
2766
|
ifNever?: unknown;
|
|
2777
2767
|
}> = IsAny<T> extends true ? 'ifAny' extends keyof Cases ? Cases['ifAny'] : any : IsNever<T> extends true ? 'ifNever' extends keyof Cases ? Cases['ifNever'] : never : Cases['ifNot'];
|
|
2778
2768
|
//#endregion
|
|
2779
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2769
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/simplify.d.ts
|
|
2780
2770
|
/**
|
|
2781
2771
|
Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
|
|
2782
2772
|
|
|
@@ -2837,7 +2827,7 @@ fn(someInterface as Simplify<SomeInterface>); // Good: transform an `interface`
|
|
|
2837
2827
|
*/
|
|
2838
2828
|
type Simplify<T> = { [KeyType in keyof T]: T[KeyType]; } & {};
|
|
2839
2829
|
//#endregion
|
|
2840
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2830
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-equal.d.ts
|
|
2841
2831
|
/**
|
|
2842
2832
|
Returns a boolean for whether the two given types are equal.
|
|
2843
2833
|
|
|
@@ -2868,7 +2858,7 @@ type IsEqual<A, B> = [A] extends [B] ? [B] extends [A] ? _IsEqual<A, B> : false
|
|
|
2868
2858
|
// This version fails the `equalWrappedTupleIntersectionToBeNeverAndNeverExpanded` test in `test-d/is-equal.ts`.
|
|
2869
2859
|
type _IsEqual<A, B> = (<G>() => G extends A & G | G ? 1 : 2) extends (<G>() => G extends B & G | G ? 1 : 2) ? true : false;
|
|
2870
2860
|
//#endregion
|
|
2871
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2861
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/omit-index-signature.d.ts
|
|
2872
2862
|
/**
|
|
2873
2863
|
Omit any index signatures from the given object type, leaving only explicitly defined properties.
|
|
2874
2864
|
|
|
@@ -2962,7 +2952,7 @@ type ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;
|
|
|
2962
2952
|
*/
|
|
2963
2953
|
type OmitIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? never : KeyType]: ObjectType[KeyType]; };
|
|
2964
2954
|
//#endregion
|
|
2965
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2955
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/pick-index-signature.d.ts
|
|
2966
2956
|
/**
|
|
2967
2957
|
Pick only index signatures from the given object type, leaving out all explicitly defined properties.
|
|
2968
2958
|
|
|
@@ -3010,7 +3000,7 @@ type ExampleIndexSignature = PickIndexSignature<Example>;
|
|
|
3010
3000
|
*/
|
|
3011
3001
|
type PickIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? KeyType : never]: ObjectType[KeyType]; };
|
|
3012
3002
|
//#endregion
|
|
3013
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
3003
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/merge.d.ts
|
|
3014
3004
|
// Merges two objects without worrying about index signatures.
|
|
3015
3005
|
type SimpleMerge<Destination, Source> = Simplify<{ [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key]; } & Source>;
|
|
3016
3006
|
/**
|
|
@@ -3081,7 +3071,7 @@ type Merge<Destination, Source> = Destination extends unknown // For distributin
|
|
|
3081
3071
|
: never; // Should never happen
|
|
3082
3072
|
type _Merge<Destination, Source> = Simplify<SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>> & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>>;
|
|
3083
3073
|
//#endregion
|
|
3084
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
3074
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/internal/object.d.ts
|
|
3085
3075
|
/**
|
|
3086
3076
|
Merges user specified options with default options.
|
|
3087
3077
|
|
|
@@ -3138,7 +3128,7 @@ type ApplyDefaultOptions<Options extends object, Defaults extends Simplify<Omit<
|
|
|
3138
3128
|
) ? Result : never;
|
|
3139
3129
|
type _ApplyDefaultOptions<Options, Defaults, SpecifiedOptions> = If<IsAny<SpecifiedOptions>, Defaults, If<IsNever<SpecifiedOptions>, Defaults, Merge<Defaults, { [Key in keyof SpecifiedOptions as undefined extends Required<Options>[Key & keyof Options] ? Key : undefined extends SpecifiedOptions[Key] ? never : Key]: SpecifiedOptions[Key]; }>>>;
|
|
3140
3130
|
//#endregion
|
|
3141
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
3131
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/except.d.ts
|
|
3142
3132
|
/**
|
|
3143
3133
|
Filter out keys from an object.
|
|
3144
3134
|
|
|
@@ -3238,7 +3228,7 @@ type PostPayloadFixed = Except<UserData, 'email'>;
|
|
|
3238
3228
|
type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {}> = _Except<ObjectType, KeysType, ApplyDefaultOptions<ExceptOptions, DefaultExceptOptions, Options>>;
|
|
3239
3229
|
type _Except<ObjectType, KeysType extends keyof ObjectType, Options extends Required<ExceptOptions>> = { [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType]; } & (Options['requireExactProps'] extends true ? Partial<Record<KeysType, never>> : {});
|
|
3240
3230
|
//#endregion
|
|
3241
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
3231
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/require-at-least-one.d.ts
|
|
3242
3232
|
/**
|
|
3243
3233
|
Create a type that requires at least one of the given keys, while keeping the remaining keys as is.
|
|
3244
3234
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@oxlint+plugins@1.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@oxlint+plugins@1.82.0/node_modules/@oxlint/plugins/index.d.ts
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region src-js/plugins/tokens.d.ts
|
|
4
4
|
/**
|
|
@@ -400,8 +400,6 @@ type VisitorWithHooks = VisitorObject & {
|
|
|
400
400
|
};
|
|
401
401
|
interface Node extends Span {}
|
|
402
402
|
type NodeOrToken = Node | TokenType | CommentType;
|
|
403
|
-
//#endregion
|
|
404
|
-
//#region src-js/plugins/location.d.ts
|
|
405
403
|
/**
|
|
406
404
|
* Range of source offsets.
|
|
407
405
|
*/
|
|
@@ -1768,8 +1766,6 @@ type LogicalOperator = "||" | "&&" | "??";
|
|
|
1768
1766
|
type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
1769
1767
|
type UpdateOperator = "++" | "--";
|
|
1770
1768
|
type Node$1 = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive$1 | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function$1 | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
|
|
1771
|
-
//#endregion
|
|
1772
|
-
//#region src-js/plugins/scope.d.ts
|
|
1773
1769
|
interface Scope {
|
|
1774
1770
|
type: ScopeType;
|
|
1775
1771
|
isStrict: boolean;
|
|
@@ -1847,8 +1843,6 @@ declare function getScope(node: Node$1): Scope;
|
|
|
1847
1843
|
* @returns `true` if a variable with the given name was found and marked as used, otherwise `false`
|
|
1848
1844
|
*/
|
|
1849
1845
|
declare function markVariableAsUsed(name: string, refNode?: Node$1): boolean;
|
|
1850
|
-
//#endregion
|
|
1851
|
-
//#region src-js/plugins/comments_methods.d.ts
|
|
1852
1846
|
/**
|
|
1853
1847
|
* Retrieve an array containing all comments in the source code.
|
|
1854
1848
|
* @returns Array of `Comment`s in order they appear in source.
|
|
@@ -1916,8 +1910,6 @@ declare function getJSDocComment(node: Node): CommentType | null;
|
|
|
1916
1910
|
//#endregion
|
|
1917
1911
|
//#region src-js/plugins/tokens_and_comments.d.ts
|
|
1918
1912
|
type TokenOrComment = TokenType | CommentType;
|
|
1919
|
-
//#endregion
|
|
1920
|
-
//#region src-js/plugins/tokens_methods.d.ts
|
|
1921
1913
|
/**
|
|
1922
1914
|
* Options for various `SourceCode` methods e.g. `getFirstToken`.
|
|
1923
1915
|
*/
|
|
@@ -2167,8 +2159,6 @@ declare function isSpaceBetween(first: NodeOrToken, second: NodeOrToken): boolea
|
|
|
2167
2159
|
* any of the tokens found between the two given nodes or tokens.
|
|
2168
2160
|
*/
|
|
2169
2161
|
declare function isSpaceBetweenTokens(first: NodeOrToken, second: NodeOrToken): boolean;
|
|
2170
|
-
//#endregion
|
|
2171
|
-
//#region src-js/plugins/directives.d.ts
|
|
2172
2162
|
interface Problem {
|
|
2173
2163
|
ruleId: string | null;
|
|
2174
2164
|
message: string;
|
|
@@ -2428,7 +2418,7 @@ type Options = JsonValue[];
|
|
|
2428
2418
|
*/
|
|
2429
2419
|
type RuleOptionsSchema = JSONSchema4 | JSONSchema4[] | false;
|
|
2430
2420
|
//#endregion
|
|
2431
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2421
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-any.d.ts
|
|
2432
2422
|
/**
|
|
2433
2423
|
Returns a boolean for whether the given type is `any`.
|
|
2434
2424
|
|
|
@@ -2459,7 +2449,7 @@ const anyA = get(anyObject, 'a');
|
|
|
2459
2449
|
*/
|
|
2460
2450
|
type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
|
|
2461
2451
|
//#endregion
|
|
2462
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2452
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-optional-key-of.d.ts
|
|
2463
2453
|
/**
|
|
2464
2454
|
Returns a boolean for whether the given key is an optional key of type.
|
|
2465
2455
|
|
|
@@ -2502,7 +2492,7 @@ type T5 = IsOptionalKeyOf<User | Admin, 'surname'>;
|
|
|
2502
2492
|
*/
|
|
2503
2493
|
type IsOptionalKeyOf<Type extends object, Key extends keyof Type> = IsAny<Type | Key> extends true ? never : Key extends keyof Type ? Type extends Record<Key, Type[Key]> ? false : true : false;
|
|
2504
2494
|
//#endregion
|
|
2505
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2495
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/optional-keys-of.d.ts
|
|
2506
2496
|
/**
|
|
2507
2497
|
Extract all optional keys from the given type.
|
|
2508
2498
|
|
|
@@ -2540,7 +2530,7 @@ type OptionalKeysOf<Type extends object> = Type extends unknown // For distribut
|
|
|
2540
2530
|
? (keyof { [Key in keyof Type as IsOptionalKeyOf<Type, Key> extends false ? never : Key]: never; }) & keyof Type // Intersect with `keyof Type` to ensure result of `OptionalKeysOf<Type>` is always assignable to `keyof Type`
|
|
2541
2531
|
: never; // Should never happen
|
|
2542
2532
|
//#endregion
|
|
2543
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2533
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/required-keys-of.d.ts
|
|
2544
2534
|
/**
|
|
2545
2535
|
Extract all required keys from the given type.
|
|
2546
2536
|
|
|
@@ -2574,7 +2564,7 @@ const validator3 = createValidation<User>('luckyNumber', value => value > 0);
|
|
|
2574
2564
|
type RequiredKeysOf<Type extends object> = Type extends unknown // For distributing `Type`
|
|
2575
2565
|
? Exclude<keyof Type, OptionalKeysOf<Type>> : never; // Should never happen
|
|
2576
2566
|
//#endregion
|
|
2577
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2567
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-never.d.ts
|
|
2578
2568
|
/**
|
|
2579
2569
|
Returns a boolean for whether the given type is `never`.
|
|
2580
2570
|
|
|
@@ -2630,7 +2620,7 @@ type B = IsTrueFixed<never>;
|
|
|
2630
2620
|
*/
|
|
2631
2621
|
type IsNever<T> = [T] extends [never] ? true : false;
|
|
2632
2622
|
//#endregion
|
|
2633
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2623
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/if.d.ts
|
|
2634
2624
|
/**
|
|
2635
2625
|
An if-else-like type that resolves depending on whether the given `boolean` type is `true` or `false`.
|
|
2636
2626
|
|
|
@@ -2725,7 +2715,7 @@ type Works = IncludesWithoutIf<HundredZeroes, '1'>;
|
|
|
2725
2715
|
*/
|
|
2726
2716
|
type If<Type extends boolean, IfBranch, ElseBranch> = IsNever<Type> extends true ? ElseBranch : Type extends true ? IfBranch : ElseBranch;
|
|
2727
2717
|
//#endregion
|
|
2728
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2718
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/internal/type.d.ts
|
|
2729
2719
|
/**
|
|
2730
2720
|
An if-else-like type that resolves depending on whether the given type is `any` or `never`.
|
|
2731
2721
|
|
|
@@ -2776,7 +2766,7 @@ type IfNotAnyOrNever<T, Cases extends {
|
|
|
2776
2766
|
ifNever?: unknown;
|
|
2777
2767
|
}> = IsAny<T> extends true ? 'ifAny' extends keyof Cases ? Cases['ifAny'] : any : IsNever<T> extends true ? 'ifNever' extends keyof Cases ? Cases['ifNever'] : never : Cases['ifNot'];
|
|
2778
2768
|
//#endregion
|
|
2779
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2769
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/simplify.d.ts
|
|
2780
2770
|
/**
|
|
2781
2771
|
Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
|
|
2782
2772
|
|
|
@@ -2837,7 +2827,7 @@ fn(someInterface as Simplify<SomeInterface>); // Good: transform an `interface`
|
|
|
2837
2827
|
*/
|
|
2838
2828
|
type Simplify<T> = { [KeyType in keyof T]: T[KeyType]; } & {};
|
|
2839
2829
|
//#endregion
|
|
2840
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2830
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-equal.d.ts
|
|
2841
2831
|
/**
|
|
2842
2832
|
Returns a boolean for whether the two given types are equal.
|
|
2843
2833
|
|
|
@@ -2868,7 +2858,7 @@ type IsEqual<A, B> = [A] extends [B] ? [B] extends [A] ? _IsEqual<A, B> : false
|
|
|
2868
2858
|
// This version fails the `equalWrappedTupleIntersectionToBeNeverAndNeverExpanded` test in `test-d/is-equal.ts`.
|
|
2869
2859
|
type _IsEqual<A, B> = (<G>() => G extends A & G | G ? 1 : 2) extends (<G>() => G extends B & G | G ? 1 : 2) ? true : false;
|
|
2870
2860
|
//#endregion
|
|
2871
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2861
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/omit-index-signature.d.ts
|
|
2872
2862
|
/**
|
|
2873
2863
|
Omit any index signatures from the given object type, leaving only explicitly defined properties.
|
|
2874
2864
|
|
|
@@ -2962,7 +2952,7 @@ type ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;
|
|
|
2962
2952
|
*/
|
|
2963
2953
|
type OmitIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? never : KeyType]: ObjectType[KeyType]; };
|
|
2964
2954
|
//#endregion
|
|
2965
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2955
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/pick-index-signature.d.ts
|
|
2966
2956
|
/**
|
|
2967
2957
|
Pick only index signatures from the given object type, leaving out all explicitly defined properties.
|
|
2968
2958
|
|
|
@@ -3010,7 +3000,7 @@ type ExampleIndexSignature = PickIndexSignature<Example>;
|
|
|
3010
3000
|
*/
|
|
3011
3001
|
type PickIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? KeyType : never]: ObjectType[KeyType]; };
|
|
3012
3002
|
//#endregion
|
|
3013
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
3003
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/merge.d.ts
|
|
3014
3004
|
// Merges two objects without worrying about index signatures.
|
|
3015
3005
|
type SimpleMerge<Destination, Source> = Simplify<{ [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key]; } & Source>;
|
|
3016
3006
|
/**
|
|
@@ -3081,7 +3071,7 @@ type Merge<Destination, Source> = Destination extends unknown // For distributin
|
|
|
3081
3071
|
: never; // Should never happen
|
|
3082
3072
|
type _Merge<Destination, Source> = Simplify<SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>> & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>>;
|
|
3083
3073
|
//#endregion
|
|
3084
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
3074
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/internal/object.d.ts
|
|
3085
3075
|
/**
|
|
3086
3076
|
Merges user specified options with default options.
|
|
3087
3077
|
|
|
@@ -3138,7 +3128,7 @@ type ApplyDefaultOptions<Options extends object, Defaults extends Simplify<Omit<
|
|
|
3138
3128
|
) ? Result : never;
|
|
3139
3129
|
type _ApplyDefaultOptions<Options, Defaults, SpecifiedOptions> = If<IsAny<SpecifiedOptions>, Defaults, If<IsNever<SpecifiedOptions>, Defaults, Merge<Defaults, { [Key in keyof SpecifiedOptions as undefined extends Required<Options>[Key & keyof Options] ? Key : undefined extends SpecifiedOptions[Key] ? never : Key]: SpecifiedOptions[Key]; }>>>;
|
|
3140
3130
|
//#endregion
|
|
3141
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
3131
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/except.d.ts
|
|
3142
3132
|
/**
|
|
3143
3133
|
Filter out keys from an object.
|
|
3144
3134
|
|
|
@@ -3238,7 +3228,7 @@ type PostPayloadFixed = Except<UserData, 'email'>;
|
|
|
3238
3228
|
type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {}> = _Except<ObjectType, KeysType, ApplyDefaultOptions<ExceptOptions, DefaultExceptOptions, Options>>;
|
|
3239
3229
|
type _Except<ObjectType, KeysType extends keyof ObjectType, Options extends Required<ExceptOptions>> = { [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType]; } & (Options['requireExactProps'] extends true ? Partial<Record<KeysType, never>> : {});
|
|
3240
3230
|
//#endregion
|
|
3241
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
3231
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/require-at-least-one.d.ts
|
|
3242
3232
|
/**
|
|
3243
3233
|
Create a type that requires at least one of the given keys, while keeping the remaining keys as is.
|
|
3244
3234
|
|