@angular-eslint/eslint-plugin 20.6.1-alpha.8 → 20.7.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.
@@ -1 +1 @@
1
- {"version":3,"file":"use-component-selector.d.ts","sourceRoot":"","sources":["../../src/rules/use-component-selector.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAElD,wBAiCG;AAEH,eAAO,MAAM,mBAAmB;;CAG/B,CAAC"}
1
+ {"version":3,"file":"use-component-selector.d.ts","sourceRoot":"","sources":["../../src/rules/use-component-selector.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAElD,wBAkCG;AAEH,eAAO,MAAM,mBAAmB;;CAG/B,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RULE_DOCS_EXTENSION = exports.RULE_NAME = void 0;
4
4
  const utils_1 = require("@angular-eslint/utils");
5
+ const utils_2 = require("@typescript-eslint/utils");
5
6
  const create_eslint_rule_1 = require("../utils/create-eslint-rule");
6
7
  exports.RULE_NAME = 'use-component-selector';
7
8
  exports.default = (0, create_eslint_rule_1.createESLintRule)({
@@ -23,7 +24,8 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
23
24
  const selector = utils_1.ASTUtils.getDecoratorPropertyValue(node, 'selector');
24
25
  if (selector &&
25
26
  ((utils_1.ASTUtils.isStringLiteral(selector) && selector.value.length) ||
26
- utils_1.ASTUtils.isTemplateLiteral(selector))) {
27
+ utils_1.ASTUtils.isTemplateLiteral(selector) ||
28
+ utils_2.ASTUtils.isIdentifier(selector))) {
27
29
  return;
28
30
  }
29
31
  context.report({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/eslint-plugin",
3
- "version": "20.6.1-alpha.8",
3
+ "version": "20.7.0",
4
4
  "description": "ESLint plugin for Angular applications, following https://angular.dev/style-guide",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -19,11 +19,11 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "ts-api-utils": "^2.1.0",
22
- "@angular-eslint/bundled-angular-compiler": "20.6.1-alpha.8",
23
- "@angular-eslint/utils": "20.6.1-alpha.8"
22
+ "@angular-eslint/bundled-angular-compiler": "20.7.0",
23
+ "@angular-eslint/utils": "20.7.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@angular-eslint/test-utils": "20.6.1-alpha.8"
26
+ "@angular-eslint/test-utils": "20.7.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@typescript-eslint/utils": "^7.11.0 || ^8.0.0",