Gathering detailed insights and metrics for @angular-eslint/eslint-plugin-template
Gathering detailed insights and metrics for @angular-eslint/eslint-plugin-template
Gathering detailed insights and metrics for @angular-eslint/eslint-plugin-template
Gathering detailed insights and metrics for @angular-eslint/eslint-plugin-template
@betsys-eslint/eslint-plugin-angular-template-spacing
Plugin that offers spacing possibilities in Angular's templates using ESLint
@tylertech-eslint/eslint-plugin-angular-template
Common angular template lint rules/preferences for Tyler Technologies.
eslint-plugin-angular-template-spacing
Plugin that offers spacing possibilities in Angular's templates using ESLint
eslint-plugin-angular-template-consistent-this
ESLint Angular Template consistent this for properties, variables & template references
✨ Monorepo for all the tooling related to using ESLint with Angular
npm install @angular-eslint/eslint-plugin-template
Typescript
Module System
Node Version
NPM Version
TypeScript (99.58%)
JavaScript (0.42%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,730 Stars
1,841 Commits
244 Forks
26 Watchers
24 Branches
111 Contributors
Updated on Jul 12, 2025
Latest Version
20.1.1
Package Id
@angular-eslint/eslint-plugin-template@20.1.1
Unpacked Size
322.03 kB
Size
62.91 kB
File Count
179
NPM Version
10.9.2
Node Version
22.16.0
Published on
Jun 19, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Please see https://github.com/angular-eslint/angular-eslint for full usage instructions and guidance.
Key
Rule | Description | :white_check_mark: | :wrench: | :bulb: | :accessibility: |
---|---|---|---|---|---|
no-duplicate-attributes | Ensures that there are no duplicate input properties or output event listeners | :bulb: | |||
no-nested-tags | Denies nesting of and tags. |
Key
Rule | Description | :white_check_mark: | :wrench: | :bulb: | :accessibility: |
---|---|---|---|---|---|
alt-text | [Accessibility] Enforces alternate text for elements which require the alt, aria-label, aria-labelledby attributes. | :accessibility: | |||
banana-in-box | Ensures that the two-way data binding syntax is correct | :white_check_mark: | :wrench: | ||
button-has-type | Ensures that a button has a valid type specified | ||||
click-events-have-key-events | [Accessibility] Ensures that the click event is accompanied with at least one key event keyup, keydown or keypress. | :accessibility: | |||
conditional-complexity | The conditional complexity should not exceed a rational limit | ||||
cyclomatic-complexity | Checks cyclomatic complexity against a specified limit. It is a quantitative measure of the number of linearly independent paths through a program's source code | ||||
elements-content | [Accessibility] Ensures that the heading, anchor and button elements have content in it | :accessibility: | |||
eqeqeq | Requires === and !== in place of == and != | :white_check_mark: | :wrench: | :bulb: | |
i18n | Ensures following best practices for i18n. Checks for missing i18n attributes on elements and attributes containing texts. Can also check for texts without i18n attribute, elements that do not use custom ID (@@) feature and duplicate custom IDs | :wrench: | :bulb: | ||
interactive-supports-focus | [Accessibility] Ensures that elements with interactive handlers like (click) are focusable. | :accessibility: | |||
label-has-associated-control | [Accessibility] Ensures that a label element/component is associated with a form element | :accessibility: | |||
mouse-events-have-key-events | [Accessibility] Ensures that the mouse events mouseout and mouseover are accompanied by focus and blur events respectively. Coding for the keyboard is important for users with physical disabilities who cannot use a mouse, AT compatibility, and screenreader users. See more at https://www.w3.org/WAI/WCAG21/Understanding/keyboard | :accessibility: | |||
no-any | The use of "$any" nullifies the compile-time benefits of Angular's type system | :bulb: | |||
no-autofocus | [Accessibility] Ensures that the autofocus attribute is not used | :wrench: | :accessibility: | ||
no-call-expression | Disallows calling expressions in templates, except for output handlers | ||||
no-distracting-elements | [Accessibility] Enforces that no distracting elements are used | :wrench: | :accessibility: | ||
no-inline-styles | Disallows the use of inline styles in HTML templates | ||||
no-interpolation-in-attributes | Ensures that property-binding is used instead of interpolation in attributes. | :wrench: | |||
no-negated-async | Ensures that async pipe results, as well as values used with the async pipe, are not negated | :white_check_mark: | :bulb: | ||
no-positive-tabindex | Ensures that the tabindex attribute is not positive | :bulb: | |||
prefer-at-empty | Prefer using @empty with @for loops instead of a separate @if or @else block to reduce code and make it easier to read. | :wrench: | |||
prefer-contextual-for-variables | Ensures that contextual variables are used in @for blocks where possible instead of aliasing them. | :wrench: | |||
prefer-control-flow | Ensures that the built-in control flow is used. | ||||
prefer-ngsrc | Ensures ngSrc is used instead of src for img elements | ||||
prefer-template-literal | Ensure that template literals are used instead of concatenating strings or expressions. | :wrench: | |||
role-has-required-aria | [Accessibility] Ensures elements with ARIA roles have all required properties for that role. | :bulb: | :accessibility: | ||
table-scope | [Accessibility] Ensures that the scope attribute is only used on the <th> element | :wrench: | :accessibility: | ||
use-track-by-function | Ensures trackBy function is used | ||||
valid-aria | [Accessibility] Ensures that correct ARIA attributes and respective values are used | :bulb: | :accessibility: |
Key
Rule | Description | :white_check_mark: | :wrench: | :bulb: | :accessibility: |
---|---|---|---|---|---|
attributes-order | Ensures that HTML attributes and Angular bindings are sorted based on an expected order | :wrench: | |||
prefer-self-closing-tags | Ensures that self-closing tags are used for elements with a closing tag but no content. | :wrench: | |||
prefer-static-string-properties | Ensures that static string values use property assignment instead of property binding. | :wrench: |
No vulnerabilities found.
Reason
30 commit(s) and 23 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 1/4 approved changesets -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More