@angular-eslint/utils 19.0.0-alpha.3 → 19.0.0-alpha.5

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.
@@ -72,7 +72,7 @@ export type AngularInnerClassDecoratorKeys = Exclude<keyof typeof AngularInnerCl
72
72
  export type AngularLifecycleInterfaceKeys = keyof typeof AngularLifecycleInterfaces;
73
73
  export type AngularLifecycleMethodKeys = keyof typeof AngularLifecycleMethods;
74
74
  export declare const angularClassDecoratorKeys: readonly ("Component" | "Directive" | "Injectable" | "NgModule" | "Pipe")[];
75
- export declare const angularInnerClassDecoratorKeys: readonly ("ContentChild" | "ContentChildren" | "HostBinding" | "Input" | "Output" | "ViewChild" | "ViewChildren" | "HostListener" | "Attribute" | "Host" | "Inject" | "Optional" | "Self" | "SkipSelf")[];
75
+ export declare const angularInnerClassDecoratorKeys: readonly ("Attribute" | "Host" | "Inject" | "Optional" | "Self" | "SkipSelf" | "HostListener" | "ContentChild" | "ContentChildren" | "HostBinding" | "Input" | "Output" | "ViewChild" | "ViewChildren")[];
76
76
  export declare const angularLifecycleInterfaceKeys: readonly ("AfterContentChecked" | "AfterContentInit" | "AfterViewChecked" | "AfterViewInit" | "DoBootstrap" | "DoCheck" | "OnChanges" | "OnDestroy" | "OnInit")[];
77
77
  export declare const angularLifecycleMethodKeys: readonly ("ngAfterContentChecked" | "ngAfterContentInit" | "ngAfterViewChecked" | "ngAfterViewInit" | "ngDoBootstrap" | "ngDoCheck" | "ngOnChanges" | "ngOnDestroy" | "ngOnInit")[];
78
78
  /**
@@ -7,7 +7,7 @@ export declare function getImportAddFix({ compatibleWithTypeOnlyImport, fixer, i
7
7
  node: TSESTree.Node;
8
8
  }): TSESLint.RuleFix | undefined;
9
9
  export declare function getImportRemoveFix(sourceCode: Readonly<TSESLint.SourceCode>, importDeclarations: readonly TSESTree.ImportDeclaration[], importName: string, fixer: TSESLint.RuleFixer): TSESLint.RuleFix | undefined;
10
- export declare function getImplementsSchemaFixer({ id, implements: classImplements }: TSESTree.ClassDeclaration, interfaceName: string): {
10
+ export declare function getImplementsSchemaFixer({ id, superClass, implements: classImplements }: TSESTree.ClassDeclaration, interfaceName: string): {
11
11
  readonly implementsNodeReplace: TSESTree.TSClassImplements | TSESTree.Identifier;
12
12
  readonly implementsTextReplace: string;
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rule-fixes.d.ts","sourceRoot":"","sources":["../../src/eslint-plugin/rule-fixes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAcnE,wBAAgB,eAAe,CAAC,EAC9B,4BAAoC,EACpC,KAAK,EACL,UAAU,EACV,UAAU,EACV,IAAI,GACL,EAAE;IACD,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;CACrB,GAAG,QAAQ,CAAC,OAAO,GAAG,SAAS,CA8B/B;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EACzC,kBAAkB,EAAE,SAAS,QAAQ,CAAC,iBAAiB,EAAE,EACzD,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,QAAQ,CAAC,SAAS,GACxB,QAAQ,CAAC,OAAO,GAAG,SAAS,CAkC9B;AAED,wBAAgB,wBAAwB,CACtC,EAAE,EAAE,EAAE,UAAU,EAAE,eAAe,EAAE,EAAE,QAAQ,CAAC,gBAAgB,EAC9D,aAAa,EAAE,MAAM,GACpB;IACD,QAAQ,CAAC,qBAAqB,EAC1B,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,UAAU,CAAC;IACxB,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;CACxC,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UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,QAAQ,CAAC,SAAS,GACxB,QAAQ,CAAC,OAAO,GAAG,SAAS,CAkC9B;AAED,wBAAgB,wBAAwB,CACtC,EAAE,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,EAAE,QAAQ,CAAC,gBAAgB,EAC1E,aAAa,EAAE,MAAM,GACpB;IACD,QAAQ,CAAC,qBAAqB,EAC1B,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,UAAU,CAAC;IACxB,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;CACxC,CAYA;AAED,wBAAgB,0BAA0B,CACxC,EAAE,UAAU,EAAE,EAAE,QAAQ,CAAC,SAAS,EAClC,KAAK,EAAE,QAAQ,CAAC,SAAS,EACzB,IAAI,EAAE,MAAM,GACX,QAAQ,CAAC,OAAO,GAAG,SAAS,CA0B9B;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EACzC,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,EAC3C,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,QAAQ,CAAC,SAAS,GACxB,QAAQ,CAAC,OAAO,GAAG,SAAS,CAkC9B;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EACzC,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,KAAK,EAAE,QAAQ,CAAC,SAAS,GACxB,QAAQ,CAAC,OAAO,CAMlB"}
@@ -53,10 +53,15 @@ function getImportRemoveFix(sourceCode, importDeclarations, importName, fixer) {
53
53
  importSpecifier.range[1],
54
54
  ]);
55
55
  }
56
- function getImplementsSchemaFixer({ id, implements: classImplements }, interfaceName) {
56
+ function getImplementsSchemaFixer({ id, superClass, implements: classImplements }, interfaceName) {
57
57
  const [implementsNodeReplace, implementsTextReplace] = Array.isArray(classImplements) && classImplements.length > 0
58
58
  ? [(0, utils_2.getLast)(classImplements), `, ${interfaceName}`]
59
- : [id, ` implements ${interfaceName}`];
59
+ : [
60
+ ((0, utils_2.isNotNullOrUndefined)(superClass)
61
+ ? superClass
62
+ : id),
63
+ ` implements ${interfaceName}`,
64
+ ];
60
65
  return { implementsNodeReplace, implementsTextReplace };
61
66
  }
62
67
  function getDecoratorPropertyAddFix({ expression }, fixer, text) {
@@ -7,6 +7,7 @@ export declare const MODULE_CLASS_DECORATOR = "ClassDeclaration > Decorator[expr
7
7
  export declare const INPUT_DECORATOR = "Decorator[expression.callee.name=\"Input\"]";
8
8
  export declare const OUTPUT_DECORATOR = "Decorator[expression.callee.name=\"Output\"]";
9
9
  export declare const LITERAL_OR_TEMPLATE_ELEMENT = ":matches(Literal, TemplateElement)";
10
+ export declare const ALIAS_PROPERTY_VALUE = "ObjectExpression > Property[key.name='alias'] :matches(Literal, TemplateElement)";
10
11
  export declare function decoratorDefinition(decoratorName: RegExp): string;
11
12
  export declare function decoratorDefinition<TDecoratorName extends string>(decoratorName: TDecoratorName): `ClassDeclaration:has(Decorator[expression.callee.name=${TDecoratorName}])`;
12
13
  export declare function metadataProperty(key: RegExp): string;
@@ -17,9 +18,9 @@ export declare const COMPONENT_SELECTOR_LITERAL: string;
17
18
  export declare const DIRECTIVE_SELECTOR_LITERAL: string;
18
19
  export declare const COMPONENT_OR_DIRECTIVE_SELECTOR_LITERAL: string;
19
20
  export declare const INPUTS_METADATA_PROPERTY_LITERAL: string;
20
- export declare const INPUT_ALIAS = ":matches(PropertyDefinition, MethodDefinition[kind='set']) Decorator[expression.callee.name=\"Input\"] :matches(Literal, TemplateElement)";
21
+ export declare const INPUT_ALIAS: string;
21
22
  export declare const INPUT_PROPERTY_OR_SETTER = ":matches(PropertyDefinition, MethodDefinition[kind='set'])[computed=false]:has(Decorator[expression.callee.name=\"Input\"]) > :matches(Identifier, Literal)";
22
23
  export declare const OUTPUTS_METADATA_PROPERTY_LITERAL: string;
23
- export declare const OUTPUT_ALIAS = ":matches(PropertyDefinition, MethodDefinition[kind='get']) Decorator[expression.callee.name=\"Output\"] :matches(Literal, TemplateElement)";
24
- export declare const OUTPUT_PROPERTY_OR_GETTER = ":matches(PropertyDefinition, MethodDefinition[kind='get'])[computed=false]:has(Decorator[expression.callee.name=\"Output\"]) > :matches(Identifier, Literal)";
24
+ export declare const OUTPUT_ALIAS: string;
25
+ export declare const OUTPUT_PROPERTY_OR_GETTER: string;
25
26
  //# sourceMappingURL=selectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/eslint-plugin/selectors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sCAAsC,mFAC+B,CAAC;AAEnF,eAAO,MAAM,yBAAyB,uEAC8B,CAAC;AAErE,eAAO,MAAM,yBAAyB,uEAC8B,CAAC;AAErE,eAAO,MAAM,oBAAoB,kEAC8B,CAAC;AAEhE,eAAO,MAAM,0BAA0B,wEAC8B,CAAC;AAEtE,eAAO,MAAM,sBAAsB,sEACgC,CAAC;AAEpE,eAAO,MAAM,eAAe,gDAA8C,CAAC;AAE3E,eAAO,MAAM,gBAAgB,iDAA+C,CAAC;AAE7E,eAAO,MAAM,2BAA2B,uCAAuC,CAAC;AAEhF,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;AACnE,wBAAgB,mBAAmB,CAAC,cAAc,SAAS,MAAM,EAC/D,aAAa,EAAE,cAAc,GAC5B,yDAAyD,cAAc,IAAI,CAAC;AAK/E,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;AACtD,wBAAgB,gBAAgB,CAAC,IAAI,SAAS,MAAM,EAClD,GAAG,EAAE,IAAI,GACR,8BAA8B,IAAI,iCAAiC,IAAI,8BAA8B,IAAI,IAAI,CAAC;AAKjH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;AACtD,wBAAgB,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gB,CAAC,IAAI,SAAS,MAAM,EAClD,GAAG,EAAE,IAAI,GACR,8BAA8B,IAAI,iCAAiC,IAAI,8BAA8B,IAAI,IAAI,CAAC;AAKjH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;AACtD,wBAAgB,gBAAgB,CAAC,IAAI,SAAS,MAAM,EAClD,GAAG,EAAE,IAAI,GACR,sCAAsC,IAAI,iCAAiC,IAAI,8BAA8B,IAAI,IAAI,CAAC;AAKzH,eAAO,MAAM,0BAA0B,QAEL,CAAC;AAEnC,eAAO,MAAM,0BAA0B,QAEL,CAAC;AAEnC,eAAO,MAAM,uCAAuC,QAA2E,CAAC;AAEhI,eAAO,MAAM,gCAAgC,QAEO,CAAC;AAErD,eAAO,MAAM,WAAW,QAMb,CAAC;AAEZ,eAAO,MAAM,wBAAwB,gKAAuI,CAAC;AAE7K,eAAO,MAAM,iCAAiC,QAEM,CAAC;AAErD,eAAO,MAAM,YAAY,QAGd,CAAC;AAEZ,eAAO,MAAM,yBAAyB,QAG3B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OUTPUT_PROPERTY_OR_GETTER = exports.OUTPUT_ALIAS = exports.OUTPUTS_METADATA_PROPERTY_LITERAL = exports.INPUT_PROPERTY_OR_SETTER = exports.INPUT_ALIAS = exports.INPUTS_METADATA_PROPERTY_LITERAL = exports.COMPONENT_OR_DIRECTIVE_SELECTOR_LITERAL = exports.DIRECTIVE_SELECTOR_LITERAL = exports.COMPONENT_SELECTOR_LITERAL = exports.LITERAL_OR_TEMPLATE_ELEMENT = exports.OUTPUT_DECORATOR = exports.INPUT_DECORATOR = exports.MODULE_CLASS_DECORATOR = exports.INJECTABLE_CLASS_DECORATOR = exports.PIPE_CLASS_DECORATOR = exports.DIRECTIVE_CLASS_DECORATOR = exports.COMPONENT_CLASS_DECORATOR = exports.COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR = void 0;
3
+ exports.OUTPUT_PROPERTY_OR_GETTER = exports.OUTPUT_ALIAS = exports.OUTPUTS_METADATA_PROPERTY_LITERAL = exports.INPUT_PROPERTY_OR_SETTER = exports.INPUT_ALIAS = exports.INPUTS_METADATA_PROPERTY_LITERAL = exports.COMPONENT_OR_DIRECTIVE_SELECTOR_LITERAL = exports.DIRECTIVE_SELECTOR_LITERAL = exports.COMPONENT_SELECTOR_LITERAL = exports.ALIAS_PROPERTY_VALUE = exports.LITERAL_OR_TEMPLATE_ELEMENT = exports.OUTPUT_DECORATOR = exports.INPUT_DECORATOR = exports.MODULE_CLASS_DECORATOR = exports.INJECTABLE_CLASS_DECORATOR = exports.PIPE_CLASS_DECORATOR = exports.DIRECTIVE_CLASS_DECORATOR = exports.COMPONENT_CLASS_DECORATOR = exports.COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR = void 0;
4
4
  exports.decoratorDefinition = decoratorDefinition;
5
5
  exports.metadataProperty = metadataProperty;
6
6
  exports.methodDefinition = methodDefinition;
@@ -13,6 +13,7 @@ exports.MODULE_CLASS_DECORATOR = 'ClassDeclaration > Decorator[expression.callee
13
13
  exports.INPUT_DECORATOR = 'Decorator[expression.callee.name="Input"]';
14
14
  exports.OUTPUT_DECORATOR = 'Decorator[expression.callee.name="Output"]';
15
15
  exports.LITERAL_OR_TEMPLATE_ELEMENT = ':matches(Literal, TemplateElement)';
16
+ exports.ALIAS_PROPERTY_VALUE = `ObjectExpression > Property[key.name='alias'] ${exports.LITERAL_OR_TEMPLATE_ELEMENT}`;
16
17
  function decoratorDefinition(decoratorName) {
17
18
  return `ClassDeclaration:has(Decorator[expression.callee.name=${decoratorName}])`;
18
19
  }
@@ -26,8 +27,20 @@ exports.COMPONENT_SELECTOR_LITERAL = `${exports.COMPONENT_CLASS_DECORATOR} ${met
26
27
  exports.DIRECTIVE_SELECTOR_LITERAL = `${exports.DIRECTIVE_CLASS_DECORATOR} ${metadataProperty('selector')} ${exports.LITERAL_OR_TEMPLATE_ELEMENT}`;
27
28
  exports.COMPONENT_OR_DIRECTIVE_SELECTOR_LITERAL = `:matches(${exports.COMPONENT_SELECTOR_LITERAL}, ${exports.DIRECTIVE_SELECTOR_LITERAL})`;
28
29
  exports.INPUTS_METADATA_PROPERTY_LITERAL = `${exports.COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR} ${metadataProperty('inputs')} > ArrayExpression ${exports.LITERAL_OR_TEMPLATE_ELEMENT}`;
29
- exports.INPUT_ALIAS = `:matches(PropertyDefinition, MethodDefinition[kind='set']) ${exports.INPUT_DECORATOR} ${exports.LITERAL_OR_TEMPLATE_ELEMENT}`;
30
+ exports.INPUT_ALIAS = [
31
+ `:matches(PropertyDefinition, MethodDefinition[kind='set']) ${exports.INPUT_DECORATOR} > CallExpression > Literal`,
32
+ `:matches(PropertyDefinition, MethodDefinition[kind='set']) ${exports.INPUT_DECORATOR} > CallExpression > TemplateLiteral > TemplateElement`,
33
+ `:matches(PropertyDefinition, MethodDefinition[kind='set']) ${exports.INPUT_DECORATOR} > CallExpression > ${exports.ALIAS_PROPERTY_VALUE}`,
34
+ `PropertyDefinition > CallExpression[callee.name='input'] > ${exports.ALIAS_PROPERTY_VALUE}`,
35
+ `PropertyDefinition > CallExpression:has(MemberExpression[object.name='input'][property.name='required']) > ${exports.ALIAS_PROPERTY_VALUE}`,
36
+ ].join(',');
30
37
  exports.INPUT_PROPERTY_OR_SETTER = `:matches(PropertyDefinition, MethodDefinition[kind='set'])[computed=false]:has(${exports.INPUT_DECORATOR}) > :matches(Identifier, Literal)`;
31
38
  exports.OUTPUTS_METADATA_PROPERTY_LITERAL = `${exports.COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR} ${metadataProperty('outputs')} > ArrayExpression ${exports.LITERAL_OR_TEMPLATE_ELEMENT}`;
32
- exports.OUTPUT_ALIAS = `:matches(PropertyDefinition, MethodDefinition[kind='get']) ${exports.OUTPUT_DECORATOR} ${exports.LITERAL_OR_TEMPLATE_ELEMENT}`;
33
- exports.OUTPUT_PROPERTY_OR_GETTER = `:matches(PropertyDefinition, MethodDefinition[kind='get'])[computed=false]:has(${exports.OUTPUT_DECORATOR}) > :matches(Identifier, Literal)`;
39
+ exports.OUTPUT_ALIAS = [
40
+ `:matches(PropertyDefinition, MethodDefinition[kind='get']) ${exports.OUTPUT_DECORATOR} ${exports.LITERAL_OR_TEMPLATE_ELEMENT}`,
41
+ `PropertyDefinition > CallExpression[callee.name='output'] > ${exports.ALIAS_PROPERTY_VALUE}`,
42
+ ].join(',');
43
+ exports.OUTPUT_PROPERTY_OR_GETTER = [
44
+ `:matches(PropertyDefinition, MethodDefinition[kind='get'])[computed=false]:has(${exports.OUTPUT_DECORATOR}) > :matches(Identifier, Literal)`,
45
+ `PropertyDefinition[computed=false]:has(CallExpression[callee.name='output']) > :matches(Identifier, Literal)`,
46
+ ].join(',');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/utils",
3
- "version": "19.0.0-alpha.3",
3
+ "version": "19.0.0-alpha.5",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "typescript": "*"
23
23
  },
24
24
  "dependencies": {
25
- "@angular-eslint/bundled-angular-compiler": "19.0.0-alpha.3"
25
+ "@angular-eslint/bundled-angular-compiler": "19.0.0-alpha.5"
26
26
  },
27
27
  "gitHead": "e2006e5e9c99e5a943d1a999e0efa5247d29ec24"
28
28
  }