@angular-eslint/eslint-plugin-template 17.1.1-alpha.1 → 17.1.1-alpha.3

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.
@@ -21,12 +21,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
21
21
  create(context) {
22
22
  const parserServices = (0, utils_1.getTemplateParserServices)(context);
23
23
  return {
24
- 'BoundAttribute[name=/^ngFor|ngIf|ngSwitch$/]'({ sourceSpan, name, }) {
25
- // For these names, the parent ngIf or ngFor already throws an error
26
- const redundantNames = ['ngIfElse', 'ngIfThen', 'ngForTrackBy'];
27
- if (redundantNames.includes(name)) {
28
- return;
29
- }
24
+ 'BoundAttribute[name=/^(ngForOf|ngIf|ngSwitch)$/]'({ sourceSpan, name, }) {
30
25
  const loc = parserServices.convertNodeSourceSpanToLoc(sourceSpan);
31
26
  context.report({
32
27
  messageId: exports.MESSAGE_ID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/eslint-plugin-template",
3
- "version": "17.1.1-alpha.1",
3
+ "version": "17.1.1-alpha.3",
4
4
  "description": "ESLint plugin for Angular Templates",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -17,10 +17,10 @@
17
17
  "LICENSE"
18
18
  ],
19
19
  "dependencies": {
20
- "@angular-eslint/bundled-angular-compiler": "17.1.1-alpha.1",
21
- "@angular-eslint/utils": "17.1.1-alpha.1",
22
- "@typescript-eslint/type-utils": "6.11.0",
23
- "@typescript-eslint/utils": "6.11.0",
20
+ "@angular-eslint/bundled-angular-compiler": "17.1.1-alpha.3",
21
+ "@angular-eslint/utils": "17.1.1-alpha.3",
22
+ "@typescript-eslint/type-utils": "6.12.0",
23
+ "@typescript-eslint/utils": "6.12.0",
24
24
  "aria-query": "5.3.0",
25
25
  "axobject-query": "4.0.0"
26
26
  },