@angular-eslint/utils 16.3.2-alpha.0 → 17.0.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.
|
@@ -52,7 +52,7 @@ function getImportRemoveFix(sourceCode, importDeclarations, importName, fixer) {
|
|
|
52
52
|
}
|
|
53
53
|
exports.getImportRemoveFix = getImportRemoveFix;
|
|
54
54
|
function getImplementsSchemaFixer({ id, implements: classImplements }, interfaceName) {
|
|
55
|
-
const [implementsNodeReplace, implementsTextReplace] = classImplements
|
|
55
|
+
const [implementsNodeReplace, implementsTextReplace] = Array.isArray(classImplements) && classImplements.length > 0
|
|
56
56
|
? [(0, utils_2.getLast)(classImplements), `, ${interfaceName}`]
|
|
57
57
|
: [id, ` implements ${interfaceName}`];
|
|
58
58
|
return { implementsNodeReplace, implementsTextReplace };
|
|
@@ -15,8 +15,8 @@ export declare const COMPONENT_SELECTOR_LITERAL: string;
|
|
|
15
15
|
export declare const DIRECTIVE_SELECTOR_LITERAL: string;
|
|
16
16
|
export declare const COMPONENT_OR_DIRECTIVE_SELECTOR_LITERAL: string;
|
|
17
17
|
export declare const INPUTS_METADATA_PROPERTY_LITERAL: string;
|
|
18
|
-
export declare const INPUT_ALIAS:
|
|
19
|
-
export declare const INPUT_PROPERTY_OR_SETTER:
|
|
18
|
+
export declare const INPUT_ALIAS = ":matches(PropertyDefinition, MethodDefinition[kind='set']) Decorator[expression.callee.name=\"Input\"] :matches(Literal, TemplateElement)";
|
|
19
|
+
export declare const INPUT_PROPERTY_OR_SETTER = ":matches(PropertyDefinition, MethodDefinition[kind='set'])[computed=false]:has(Decorator[expression.callee.name=\"Input\"]) > :matches(Identifier, Literal)";
|
|
20
20
|
export declare const OUTPUTS_METADATA_PROPERTY_LITERAL: string;
|
|
21
|
-
export declare const OUTPUT_ALIAS:
|
|
22
|
-
export declare const OUTPUT_PROPERTY_OR_GETTER:
|
|
21
|
+
export declare const OUTPUT_ALIAS = ":matches(PropertyDefinition, MethodDefinition[kind='get']) Decorator[expression.callee.name=\"Output\"] :matches(Literal, TemplateElement)";
|
|
22
|
+
export declare const OUTPUT_PROPERTY_OR_GETTER = ":matches(PropertyDefinition, MethodDefinition[kind='get'])[computed=false]:has(Decorator[expression.callee.name=\"Output\"]) > :matches(Identifier, Literal)";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"typescript": "*"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@angular-eslint/bundled-angular-compiler": "
|
|
19
|
-
"@typescript-eslint/utils": "
|
|
18
|
+
"@angular-eslint/bundled-angular-compiler": "17.0.0",
|
|
19
|
+
"@typescript-eslint/utils": "6.10.0"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "7121d78c95eefc01c306503b22cc9c7526c50633"
|
|
22
22
|
}
|