@taiga-ui/eslint-plugin-experience-next 0.498.0 → 0.499.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/eslint-plugin-experience-next",
3
- "version": "0.498.0",
3
+ "version": "0.499.0",
4
4
  "description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,7 +45,7 @@
45
45
  "eslint-plugin-import": "^2.32.0",
46
46
  "eslint-plugin-jest": "^29.15.2",
47
47
  "eslint-plugin-package-json": "^0.91.1",
48
- "eslint-plugin-perfectionist": "^5.8.0",
48
+ "eslint-plugin-perfectionist": "^5.9.0",
49
49
  "eslint-plugin-playwright": "^2.10.1",
50
50
  "eslint-plugin-prettier": "^5.5.5",
51
51
  "eslint-plugin-promise": "^7.2.1",
@@ -0,0 +1,15 @@
1
+ import { type TSESLint } from '@typescript-eslint/utils';
2
+ type MessageId = 'importCycle' | 'missingDefaultExport' | 'namedAsDefault' | 'unknownNamespaceMember';
3
+ type Options = [
4
+ {
5
+ checkCycles?: boolean;
6
+ checkDefaultImports?: boolean;
7
+ checkNamedAsDefault?: boolean;
8
+ checkNamespaceMembers?: boolean;
9
+ ignoreExternalDefaultImports?: boolean;
10
+ }?
11
+ ];
12
+ export declare const rule: TSESLint.RuleModule<MessageId, Options, unknown, TSESLint.RuleListener> & {
13
+ name: string;
14
+ };
15
+ export default rule;
@@ -0,0 +1,5 @@
1
+ import { type TSESLint } from '@typescript-eslint/utils';
2
+ export declare const rule: TSESLint.RuleModule<"noRepeatedSignalInConditional", [], unknown, TSESLint.RuleListener> & {
3
+ name: string;
4
+ };
5
+ export default rule;
@@ -0,0 +1,5 @@
1
+ type MessageIds = 'missingBlankLineAfterMultilineVariable' | 'missingBlankLineBeforeMultilineVariable' | 'missingBlankLineBetweenVariableGroups' | 'unexpectedBlankLineBeforeNextSingleLineVariable';
2
+ export declare const rule: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
3
+ name: string;
4
+ };
5
+ export default rule;
@@ -1,10 +1,6 @@
1
1
  import { type TSESTree } from '@typescript-eslint/utils';
2
+ export { getLeadingIndentation, getLineBreak, hasBlankLine, hasCommentLikeText, isSingleLineNode, } from './spacing';
2
3
  export type FieldLikeMember = TSESTree.PropertyDefinition | TSESTree.TSAbstractPropertyDefinition;
3
4
  export declare function isFieldLikeMember(member: TSESTree.ClassElement): member is FieldLikeMember;
4
5
  export declare function isAccessorMember(member: TSESTree.ClassElement): member is TSESTree.MethodDefinition;
5
6
  export declare function isRelevantSpacingClassMember(member: TSESTree.ClassElement): member is FieldLikeMember | TSESTree.MethodDefinition;
6
- export declare function isSingleLineNode(node: TSESTree.Node): boolean;
7
- export declare function hasCommentLikeText(text: string): boolean;
8
- export declare function hasBlankLine(text: string): boolean;
9
- export declare function getLineBreak(text: string): string;
10
- export declare function getLeadingIndentation(text: string): string;
@@ -0,0 +1,7 @@
1
+ import { type TSESLint, type TSESTree } from '@typescript-eslint/utils';
2
+ export declare function isSingleLineNode(node: TSESTree.Node): boolean;
3
+ export declare function hasCommentLikeText(text: string): boolean;
4
+ export declare function hasBlankLine(text: string): boolean;
5
+ export declare function getLineBreak(text: string): string;
6
+ export declare function getLeadingIndentation(text: string): string;
7
+ export declare function getSpacingReplacement(sourceCode: Readonly<TSESLint.SourceCode>, betweenText: string, nextLine: number, blankLineCount: number): string;
@@ -0,0 +1,2 @@
1
+ import { type TSESLint, type TSESTree } from '@typescript-eslint/utils';
2
+ export declare function getResolvedVariable(sourceCode: Readonly<TSESLint.SourceCode>, node: TSESTree.Identifier): TSESLint.Scope.Variable | null;