@eslint-react/kit 5.2.2-next.0 → 5.2.3-beta.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/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as core from "@eslint-react/core";
2
2
  import { ESLintReactSettingsNormalized } from "@eslint-react/shared";
3
3
  import { RuleFix, RuleFixer, RuleListener, merge } from "@eslint-react/eslint";
4
- import { FunctionExpression } from "@eslint-react/ast";
4
+ import { TSESTreeFunction } from "@eslint-react/ast";
5
5
  import { SyntaxKind } from "typescript";
6
6
  import { RuleContext } from "@typescript-eslint/utils/ts-eslint";
7
7
  import { ESLint, Linter } from "eslint";
8
8
 
9
- //#region ../../node_modules/.pnpm/@typescript-eslint+types@8.58.1/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts
9
+ //#region ../../node_modules/.pnpm/@typescript-eslint+types@8.58.2/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts
10
10
  declare type Accessibility = 'private' | 'protected' | 'public';
11
11
  declare type AccessorProperty = AccessorPropertyComputedName | AccessorPropertyNonComputedName;
12
12
  declare interface AccessorPropertyComputedName extends PropertyDefinitionComputedNameBase {
@@ -635,7 +635,7 @@ declare interface ExportSpecifierWithIdentifierLocal extends ExportSpecifierBase
635
635
  declare interface ExportSpecifierWithStringOrLiteralLocal extends ExportSpecifierBase {
636
636
  local: Identifier | StringLiteral;
637
637
  }
638
- declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression$1 | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression;
638
+ declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression;
639
639
  declare interface ExpressionStatement extends BaseNode {
640
640
  type: AST_NODE_TYPES.ExpressionStatement;
641
641
  directive: string | undefined;
@@ -751,12 +751,12 @@ declare interface FunctionDeclarationWithName extends FunctionDeclarationBase {
751
751
  declare interface FunctionDeclarationWithOptionalName extends FunctionDeclarationBase {
752
752
  id: Identifier | null;
753
753
  }
754
- declare interface FunctionExpression$1 extends FunctionBase {
754
+ declare interface FunctionExpression extends FunctionBase {
755
755
  type: AST_NODE_TYPES.FunctionExpression;
756
756
  body: BlockStatement;
757
757
  expression: false;
758
758
  }
759
- declare type FunctionLike = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression$1 | TSDeclareFunction | TSEmptyBodyFunctionExpression;
759
+ declare type FunctionLike = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression;
760
760
  declare interface Identifier extends BaseNode {
761
761
  type: AST_NODE_TYPES.Identifier;
762
762
  decorators: Decorator[];
@@ -940,7 +940,7 @@ declare interface LabeledStatement extends BaseNode {
940
940
  body: Statement;
941
941
  label: Identifier;
942
942
  }
943
- declare type LeftHandSideExpression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | CallExpression | ClassExpression | FunctionExpression$1 | Identifier | JSXElement | JSXFragment | LiteralExpression | MemberExpression | MetaProperty | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion;
943
+ declare type LeftHandSideExpression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | CallExpression | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | LiteralExpression | MemberExpression | MetaProperty | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion;
944
944
  declare type LetOrConstOrVarDeclaration = ConstDeclaration | LetOrVarDeclaredDeclaration | LetOrVarNonDeclaredDeclaration;
945
945
  declare interface LetOrConstOrVarDeclarationBase extends BaseNode {
946
946
  type: AST_NODE_TYPES.VariableDeclaration;
@@ -1047,7 +1047,7 @@ declare interface MethodDefinitionBase extends BaseNode {
1047
1047
  optional: boolean;
1048
1048
  override: boolean;
1049
1049
  static: boolean;
1050
- value: FunctionExpression$1 | TSEmptyBodyFunctionExpression;
1050
+ value: FunctionExpression | TSEmptyBodyFunctionExpression;
1051
1051
  }
1052
1052
  declare interface MethodDefinitionComputedName extends MethodDefinitionComputedNameBase {
1053
1053
  type: AST_NODE_TYPES.MethodDefinition;
@@ -1070,7 +1070,7 @@ declare interface NewExpression extends BaseNode {
1070
1070
  callee: Expression;
1071
1071
  typeArguments: TSTypeParameterInstantiation | undefined;
1072
1072
  }
1073
- declare type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression$1 | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractAccessorProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSSatisfiesExpression | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression;
1073
+ declare type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractAccessorProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSSatisfiesExpression | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression;
1074
1074
  declare interface NodeOrTokenData {
1075
1075
  type: string;
1076
1076
  /**
@@ -2145,7 +2145,7 @@ declare interface YieldExpression extends BaseNode {
2145
2145
  delegate: boolean;
2146
2146
  }
2147
2147
  //#endregion
2148
- //#region ../../node_modules/.pnpm/@typescript-eslint+types@8.58.1/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts
2148
+ //#region ../../node_modules/.pnpm/@typescript-eslint+types@8.58.2/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts
2149
2149
  declare module './generated/ast-spec' {
2150
2150
  interface BaseNode {
2151
2151
  parent: Node;
@@ -2372,7 +2372,7 @@ interface RuleToolkit {
2372
2372
  childrenOnlyCall: (node: null | Node) => node is CallExpression;
2373
2373
  childrenToArrayCall: (node: null | Node) => node is CallExpression;
2374
2374
  cloneElementCall: (node: null | Node) => node is CallExpression;
2375
- componentDecl: (node: FunctionExpression, hint: bigint) => boolean;
2375
+ componentDecl: (node: TSESTreeFunction, hint: bigint) => boolean;
2376
2376
  componentName: typeof core.isFunctionComponentName;
2377
2377
  componentNameLoose: typeof core.isFunctionComponentNameLoose;
2378
2378
  componentWrapperCall: (node: Node) => boolean;
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { merge } from "@eslint-react/eslint";
6
6
 
7
7
  //#region package.json
8
8
  var name = "@eslint-react/kit";
9
- var version = "5.2.2-next.0";
9
+ var version = "5.2.3-beta.0";
10
10
 
11
11
  //#endregion
12
12
  //#region src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/kit",
3
- "version": "5.2.2-next.0",
3
+ "version": "5.2.3-beta.0",
4
4
  "description": "ESLint React's utility module for building custom React rules with JavasSript functions.",
5
5
  "keywords": [
6
6
  "react",
@@ -36,17 +36,17 @@
36
36
  "./package.json"
37
37
  ],
38
38
  "dependencies": {
39
- "@typescript-eslint/utils": "^8.58.1",
39
+ "@typescript-eslint/utils": "^8.58.2",
40
40
  "string-ts": "^2.3.1",
41
41
  "ulid": "^3.0.2",
42
- "@eslint-react/ast": "5.2.2-next.0",
43
- "@eslint-react/core": "5.2.2-next.0",
44
- "@eslint-react/eslint": "5.2.2-next.0",
45
- "@eslint-react/shared": "5.2.2-next.0"
42
+ "@eslint-react/ast": "5.2.3-beta.0",
43
+ "@eslint-react/core": "5.2.3-beta.0",
44
+ "@eslint-react/eslint": "5.2.3-beta.0",
45
+ "@eslint-react/shared": "5.2.3-beta.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "eslint": "^10.2.0",
49
- "tsdown": "^0.21.7",
49
+ "tsdown": "^0.21.8",
50
50
  "@local/configs": "0.0.0",
51
51
  "@local/eff": "3.0.0-beta.72"
52
52
  },