14.1.2 • Published 11 days ago

@angular-eslint/template-parser v14.1.2

Weekly downloads
158,801
License
MIT
Repository
github
Last release
11 days ago

This project is made possible thanks to the continued hard work going into https://github.com/typescript-eslint/typescript-eslint, and brilliant work on the original TSLint rule implementations in https://github.com/mgechev/codelyzer.

Feel free to begin playing with the tooling in your own projects and submit PRs with missing rules and bug fixes.

We would also be very grateful for documentation PRs!

Packages included in this project

Please follow the links below for the packages you care about.

  • @angular-eslint/builder - An Angular CLI Builder which is used to execute ESLint on your Angular projects using standard commands such as ng lint

  • @angular-eslint/eslint-plugin - An ESLint-specific plugin that contains rules which are specific to Angular projects. It can be combined with any other ESLint plugins in the normal way.

  • @angular-eslint/template-parser - An ESLint-specific parser which leverages the @angular/compiler to allow for custom ESLint rules to be written which assert things about your Angular templates.

  • @angular-eslint/eslint-plugin-template - An ESLint-specific plugin which, when used in conjunction with @angular-eslint/template-parser, allows for Angular template-specific linting rules to run.

Migrating from Codelyzer and TSLint

If you are looking for general help in migrating from TSLint to ESLint, you can check out this project: https://github.com/typescript-eslint/tslint-to-eslint-config

For Angular project's specifically, the migration involves a few different aspects:

  1. Replacing the builder the Angular CLI will use when you run ng lint

  2. Replacing your tslint.json files with .eslintrc.json files

  3. Populating the .eslintrc.json files appropriately to match the previous setup you had in the Codelyzer + TSLint world

The best source of information for performing this migration is located within the Angular CLI integration test within this monorepo. Check out the relevant configuration files:

Soon we will provide an example project and also an ng add schematic to handle all of this for you automatically.

If you are interested in creating this, we would be very grateful to receive a PR in the meantime!

Rules List

:white_check_mark: = done
:construction: = work in progress

Functionality

Codelyzer ruleStatus
contextual-decorator
contextual-lifecycle:white_check_mark:
no-attribute-decorator
no-lifecycle-call:white_check_mark:
no-output-native:white_check_mark:
no-pipe-impure:white_check_mark:
prefer-on-push-component-change-detection:white_check_mark:
template-accessibility-alt-text
template-accessibility-elements-content
template-accessibility-label-for
template-accessibility-tabindex-no-positive
template-accessibility-table-scope
template-accessibility-valid-aria
template-banana-in-box:white_check_mark:
template-click-events-have-key-events
template-mouse-events-have-key-events
template-no-any
template-no-autofocus
template-no-distracting-elements
template-no-negated-async:white_check_mark:
use-injectable-provided-in:white_check_mark:
use-lifecycle-interface:white_check_mark:

Maintainability

Codelyzer ruleStatus
component-max-inline-declarations:white_check_mark:
no-conflicting-lifecycle:white_check_mark:
no-forward-ref:white_check_mark:
no-input-prefix:white_check_mark:
no-input-rename:white_check_mark:
no-output-on-prefix:white_check_mark:
no-output-rename:white_check_mark:
no-unused-css
prefer-output-readonly:white_check_mark:
relative-url-prefix:white_check_mark:
template-conditional-complexity
template-cyclomatic-complexity
template-i18n
template-no-call-expression
template-use-track-by-function
use-component-selector:white_check_mark:
use-component-view-encapsulation:white_check_mark:
use-pipe-decorator:white_check_mark:
use-pipe-transform-interface:white_check_mark:

Style

Codelyzer ruleStatus
angular-whitespace
component-class-suffix:white_check_mark:
component-selector:white_check_mark:
directive-class-suffix:white_check_mark:
directive-selector:white_check_mark:
import-destructuring-spacing
no-host-metadata-property:white_check_mark:
no-inputs-metadata-property:white_check_mark:
no-outputs-metadata-property:white_check_mark:
no-queries-metadata-property:white_check_mark:
pipe-prefix
prefer-inline-decorator
@tapsellorg/eslint-angular-configeslint-config-vicasaconfigeslint-config-simdevant-eslint-configeslint-config-ant-gulareslint-config-angular-stricteslint-config-beslogiceslint-config-brandingbrandeslint-config-dataoneeslint-config-helmeslint-config-holy-graileslint-config-kasko-typescript-angulareslint-config-jgeslint-config-suiyobieslint-plugin-angular-data-test-ideslint-plugin-nwronski@kidwen/eslint-angulareslint-config-wernerfeslint-config-navideslint-plugin-criteoeslint-plugin-clean-testingng-eslint@firestitch/lint@w11k/eslint-config@expivi/eslint-config@angular-ru/eslint-config@angular-ru/eslint-config-enterprise@angular-ru/eslint@bitovi/eslint-config@bloomreach/eslint-config-angular@busybox/eslint-config@jason_irl/angular-eslint-config@jiralite/eslint-config-neon@kengic/ng.account@kengic/ng.common@kengic/ng.identity@kengic/ng.lint@kengic/ng.project@kengic/ng.var@kidwen/eslint-config-angular@kidwen/tslint@ng-all/eslint-config@astql/html.angular-eslint@linters/eslint-config-angular@matthiaskunnen/eslint-config-angular@jlamarr22/eslint-config@jlamarr22/eslint-config-discovery@lego/eslint-config-angular-template@eui/deps-base@dlwlrma/eslint-plugin-angular@dlwlrma/eslint-plugin-angular-testing@cloudflight/eslint-plugin-angular@1stg/eslint-config@code-quality/eslint-config-angular@coara/eslint-config-ng@pepeeja/eslint-config@progress/kendo-angular-tasks@ra-dae/eslint-config@hug/eslint-config@hubtype/angular-dx@hubtype/eslint-config-angular@isnotdefined/eslint-config@simplysm/eslint-plugin@teambit/angular@teambit/angular-v10@teambit/angular-v11@teambit/angular-v12@teambit/angular-v13@teambit/angular-v8@teambit/angular-v9@tapsellorg/eslint-config@ukho/eslint-config@twohatsecurity/eslint-config@star-dancer/watermelon
14.1.1-alpha.0

15 days ago

14.1.2-alpha.0

14 days ago

14.0.5-alpha.19

15 days ago

14.0.5-alpha.18

15 days ago

14.0.5-alpha.16

15 days ago

14.0.5-alpha.11

15 days ago

14.0.5-alpha.13

15 days ago

14.0.4-alpha.3

1 month ago

14.0.4-alpha.2

1 month ago

14.0.4-alpha.4

24 days ago

14.1.0

15 days ago

14.1.1

14 days ago

14.1.2

11 days ago

14.0.3

1 month ago

14.0.4

24 days ago

14.0.5-alpha.7

15 days ago

14.1.3-alpha.0

11 days ago

14.0.1-alpha.1

3 months ago

13.2.2-alpha.24

4 months ago

13.2.2-alpha.21

4 months ago

13.2.2-alpha.27

4 months ago

13.2.2-alpha.12

4 months ago

13.2.2-alpha.13

4 months ago

13.2.2-alpha.14

4 months ago

13.2.2-alpha.15

4 months ago

13.2.2-alpha.10

4 months ago

13.2.2-alpha.16

4 months ago

14.0.3-alpha.0

3 months ago

13.5.1-alpha.2

3 months ago

13.5.1-alpha.0

4 months ago

14.0.0-alpha.0

4 months ago

14.0.0-alpha.4

3 months ago

14.0.0-alpha.2

4 months ago

14.0.0-alpha.3

4 months ago

13.3.1-alpha.1

4 months ago

13.3.1-alpha.0

4 months ago

13.3.0

4 months ago

13.2.2-alpha.5

4 months ago

13.4.0

4 months ago

13.3.1-alpha.6

4 months ago

13.3.1-alpha.3

4 months ago

13.5.1-alpha.11

3 months ago

13.5.1-alpha.12

3 months ago

13.2.2-alpha.2

4 months ago

13.2.2-alpha.1

4 months ago

14.0.0

3 months ago

14.0.1

3 months ago

14.0.2

3 months ago

14.0.2-alpha.0

3 months ago

13.5.0

4 months ago

13.4.1-alpha.0

4 months ago

13.2.1-alpha.0

6 months ago

13.2.1-alpha.2

6 months ago

13.2.1-alpha.3

6 months ago

13.1.1-alpha.20

6 months ago

13.2.1-alpha.4

6 months ago

13.2.0

6 months ago

13.2.1

6 months ago

13.1.1-alpha.8

6 months ago

13.1.1-alpha.2

6 months ago

13.1.1-alpha.3

6 months ago

13.1.1-alpha.19

6 months ago

13.1.1-alpha.18

6 months ago

13.1.1-alpha.17

6 months ago

13.1.1-alpha.12

6 months ago

13.1.1-alpha.11

6 months ago

13.1.1-alpha.10

6 months ago

13.1.0

8 months ago

13.1.1-alpha.0

8 months ago

13.0.2-alpha.9

8 months ago

13.0.2-alpha.18

8 months ago

13.0.2-alpha.17

8 months ago

13.0.2-alpha.15

8 months ago

13.0.2-alpha.14

8 months ago

13.0.2-alpha.24

8 months ago

13.0.2-alpha.29

8 months ago

13.0.2-alpha.26

8 months ago

13.0.2-alpha.25

8 months ago

13.0.2-alpha.34

8 months ago

13.0.2-alpha.33

8 months ago

13.0.2-alpha.31

8 months ago

13.0.2-alpha.37

8 months ago

13.0.2-alpha.0

11 months ago

13.0.1-alpha.0

11 months ago

13.0.0

11 months ago

13.0.1

11 months ago

12.7.0

11 months ago

4.3.1

11 months ago

12.6.2-alpha.28

11 months ago

12.6.2-alpha.27

11 months ago

12.6.2-alpha.20

11 months ago

13.0.0-alpha.1

11 months ago

12.7.1-alpha.0

11 months ago

12.6.2-alpha.12

11 months ago

12.6.1

11 months ago

12.6.2-alpha.3

11 months ago

12.6.2-alpha.0

11 months ago

12.6.2-alpha.6

11 months ago

12.6.2-alpha.4

11 months ago

12.6.2-alpha.9

11 months ago

12.6.2-alpha.8

11 months ago

12.6.1-alpha.25

11 months ago

12.6.1-alpha.26

11 months ago

13.0.0-alpha.0

11 months ago

12.6.2-alpha.10

11 months ago

12.6.1-alpha.1

11 months ago

12.6.1-alpha.2

11 months ago

12.6.1-alpha.3

11 months ago

12.6.1-alpha.4

11 months ago

12.6.1-alpha.5

11 months ago

12.6.0

11 months ago

12.6.1-alpha.15

11 months ago

12.6.1-alpha.10

11 months ago

12.6.1-alpha.12

11 months ago

12.6.1-alpha.21

11 months ago

12.6.1-alpha.22

11 months ago

12.5.1-alpha.6

11 months ago

12.6.1-alpha.0

11 months ago

12.4.2-alpha.6

1 year ago

12.5.0

1 year ago

12.5.1-alpha.3

1 year ago

12.5.1-alpha.2

1 year ago

12.5.1-alpha.5

1 year ago

12.5.1-alpha.4

1 year ago

12.5.1-alpha.1

1 year ago

12.5.1-alpha.0

1 year ago

12.4.2-alpha.2

1 year ago

12.4.2-alpha.1

1 year ago

12.4.0

1 year ago

12.4.1

1 year ago

12.3.2-alpha.20

1 year ago

12.3.2-alpha.22

1 year ago

12.3.2-alpha.23

1 year ago

12.3.2-alpha.24

1 year ago

12.4.2-alpha.0

1 year ago

12.4.1-alpha.0

1 year ago

12.3.2-alpha.16

1 year ago

12.3.2-alpha.17

1 year ago

12.3.2-alpha.19

1 year ago

12.3.2-alpha.12

1 year ago

12.3.2-alpha.13

1 year ago

12.3.2-alpha.5

1 year ago

12.3.2-alpha.3

1 year ago

12.3.2-alpha.4

1 year ago

12.3.2-alpha.1

1 year ago

12.3.2-alpha.2

1 year ago

12.3.1

1 year ago

12.3.2-alpha.0

1 year ago

12.3.0

1 year ago

12.3.1-alpha.0

1 year ago

12.2.3-alpha.5

1 year ago

12.2.3-alpha.3

1 year ago

12.2.3-alpha.4

1 year ago

12.2.3-alpha.1

1 year ago

12.2.2-alpha.2

1 year ago

12.2.2-alpha.3

1 year ago

12.2.2-alpha.1

1 year ago

12.2.2

1 year ago

12.2.3-alpha.0

1 year ago

12.2.1-alpha.8

1 year ago

12.2.1-alpha.9

1 year ago

12.2.2-alpha.0

1 year ago

12.2.1

1 year ago

12.2.1-alpha.7

1 year ago

12.2.1-alpha.5

1 year ago

12.2.1-alpha.4

1 year ago

12.2.1-alpha.3

1 year ago

12.2.1-alpha.2

1 year ago

12.2.1-alpha.1

1 year ago

12.1.1-alpha.16

1 year ago

12.2.1-alpha.0

1 year ago

12.2.0

1 year ago

12.1.1-alpha.14

1 year ago

12.1.1-alpha.13

1 year ago

12.1.1-alpha.15

1 year ago

12.1.1-alpha.10

1 year ago

12.1.1-alpha.12

1 year ago

12.1.1-alpha.11

1 year ago

12.1.1-alpha.9

1 year ago

12.1.1-alpha.8

1 year ago

12.1.1-alpha.7

1 year ago

12.1.1-alpha.6

1 year ago

12.1.1-alpha.5

1 year ago

12.1.1-alpha.4

1 year ago

12.1.1-alpha.3

1 year ago

12.1.1-alpha.2

1 year ago

12.1.1-alpha.1

1 year ago

12.1.1-alpha.0

1 year ago

12.0.1-alpha.41

1 year ago

12.0.1-alpha.40

1 year ago

12.1.0

1 year ago

12.0.1-alpha.38

1 year ago

12.0.1-alpha.39

1 year ago

12.0.1-alpha.36

1 year ago

12.0.1-alpha.37

1 year ago

12.0.1-alpha.34

1 year ago

12.0.1-alpha.35

1 year ago

12.0.1-alpha.32

1 year ago

12.0.1-alpha.33

1 year ago

12.0.1-alpha.30

1 year ago

12.0.1-alpha.31

1 year ago

12.0.1-alpha.3

1 year ago

12.0.1-alpha.4

1 year ago

12.0.1-alpha.5

1 year ago

12.0.1-alpha.6

1 year ago

12.0.1-alpha.0

1 year ago

12.0.1-alpha.1

1 year ago

12.0.1-alpha.2

1 year ago

4.2.2-alpha.0

1 year ago

4.3.1-alpha.0

1 year ago

4.2.1-alpha.3

1 year ago

4.2.1-alpha.4

1 year ago

4.2.1-alpha.5

1 year ago

12.0.1-alpha.18

1 year ago

12.0.1-alpha.19

1 year ago

12.0.1-alpha.16

1 year ago

12.0.1-alpha.17

1 year ago

12.0.1-alpha.14

1 year ago

12.0.1-alpha.15

1 year ago

12.0.1-alpha.12

1 year ago

12.0.1-alpha.13

1 year ago

12.0.1-alpha.10

1 year ago

12.0.1-alpha.11

1 year ago

12.0.1-alpha.7

1 year ago

12.0.1-alpha.8

1 year ago

12.0.0

1 year ago

12.0.1-alpha.29

1 year ago

12.0.1-alpha.27

1 year ago

12.0.1-alpha.28

1 year ago

12.0.1-alpha.25

1 year ago

12.0.1-alpha.26

1 year ago

12.0.1-alpha.23

1 year ago

12.0.1-alpha.24

1 year ago

12.0.1-alpha.21

1 year ago

12.0.1-alpha.22

1 year ago

12.0.1-alpha.20

1 year ago

4.3.0

1 year ago

4.2.1

1 year ago

4.3.1-alpha.15

1 year ago

4.3.1-alpha.16

1 year ago

12.0.0-alpha.1

1 year ago

12.0.0-alpha.0

1 year ago

12.0.0-alpha.3

1 year ago

12.0.0-alpha.2

1 year ago

12.0.0-alpha.5

1 year ago

12.0.0-alpha.4

1 year ago

4.1.1-alpha.0

1 year ago

4.1.0-tmp.2

1 year ago

4.1.0-tmp.1

1 year ago

4.1.0-tmp.0

1 year ago

4.2.1-alpha.0

1 year ago

4.2.0

1 year ago

4.2.0-tmp.0

1 year ago

4.0.1-alpha.4

1 year ago

4.0.1-alpha.3

1 year ago

4.1.0

1 year ago

4.0.0-alpha.3

1 year ago

4.0.0-alpha.4

1 year ago

4.0.0-alpha.1

1 year ago

4.0.0-alpha.2

1 year ago

4.0.0-alpha.0

1 year ago

4.0.0

1 year ago

3.0.1-tmp.9

1 year ago

3.0.2-alpha.0

1 year ago

3.0.1

1 year ago

3.0.1-tmp.10

1 year ago

3.0.1-tmp.11

1 year ago

3.0.1-tmp.12

1 year ago

3.0.1-alpha.5

1 year ago

4.0.1-alpha.2

1 year ago

4.0.1-alpha.0

1 year ago

4.0.1-alpha.1

1 year ago

2.1.1-alpha.3

1 year ago

2.1.1-alpha.1

1 year ago

3.0.1-tmp.1

1 year ago

3.0.1-tmp.0

1 year ago

3.0.1-tmp.3

1 year ago

3.0.1-tmp.2

1 year ago

3.0.1-tmp.5

1 year ago

3.0.1-tmp.4

1 year ago

3.0.1-tmp.7

1 year ago

3.0.1-tmp.6

1 year ago

3.0.1-tmp.8

1 year ago

2.1.2-alpha.0

1 year ago

3.0.0

1 year ago

2.1.1

1 year ago

3.0.1-alpha.4

1 year ago

3.0.1-alpha.0

1 year ago

2.1.1-alpha.0

1 year ago

2.0.3-alpha.10

1 year ago

2.0.3-alpha.9

1 year ago

2.0.3-alpha.8

1 year ago

2.0.3-alpha.12

1 year ago

2.0.3-alpha.11

1 year ago

2.1.0

1 year ago

2.0.3-alpha.7

1 year ago

2.0.3-alpha.6

1 year ago

2.0.3-alpha.5

1 year ago

2.0.3-alpha.4

1 year ago

3.0.0-alpha.1

2 years ago

3.0.0-alpha.0

2 years ago

3.0.0-alpha.2

2 years ago

2.0.3-alpha.3

2 years ago

2.0.3-alpha.2

2 years ago

2.0.3-alpha.1

2 years ago

2.0.2

2 years ago

2.0.3-alpha.0

2 years ago

2.0.1

2 years ago

2.0.2-alpha.0

2 years ago

2.0.1-alpha.2

2 years ago

2.0.0-alpha.7

2 years ago

2.0.0-alpha.8

2 years ago

2.0.0-alpha.9

2 years ago

2.0.0-alpha.10

2 years ago

2.0.0-alpha.5

2 years ago

2.0.0-alpha.6

2 years ago

2.0.0

2 years ago

1.2.1-alpha.14

2 years ago

1.2.1-alpha.10

2 years ago

1.2.1-alpha.11

2 years ago

1.2.1-alpha.12

2 years ago

1.2.1-alpha.13

2 years ago

2.0.0-alpha.3

2 years ago

2.0.0-alpha.4

2 years ago

1.2.1-alpha.8

2 years ago

1.2.1-alpha.7

2 years ago

1.2.1-alpha.9

2 years ago

2.0.0-alpha.2

2 years ago

1.2.1-alpha.6

2 years ago

2.0.0-alpha.1

2 years ago

1.2.1-alpha.5

2 years ago

1.2.1-alpha.4

2 years ago

1.2.1-alpha.3

2 years ago

2.0.0-alpha.0

2 years ago

1.2.1-alpha.2

2 years ago

1.2.1-alpha.1

2 years ago

1.2.0

2 years ago

1.1.1-alpha.15

2 years ago

1.1.1-alpha.16

2 years ago

1.1.1-alpha.14

2 years ago

1.2.1-alpha.0

2 years ago

1.1.1-alpha.13

2 years ago

1.1.1-alpha.11

2 years ago

1.1.1-alpha.12

2 years ago

1.1.1-alpha.10

2 years ago

1.1.1-alpha.8

2 years ago

1.1.1-alpha.7

2 years ago

1.1.1-alpha.9

2 years ago

1.1.1-alpha.6

2 years ago

1.1.1-alpha.4

2 years ago

1.1.1-alpha.5

2 years ago

1.1.1-alpha.2

2 years ago

1.1.1-alpha.3

2 years ago

1.1.1-alpha.1

2 years ago

1.1.1-alpha.0

2 years ago

1.1.0

2 years ago

1.0.1-alpha.2

2 years ago

1.0.1-alpha.4

2 years ago

1.0.1-alpha.3

2 years ago

1.0.1-alpha.1

2 years ago

1.0.0

2 years ago

1.0.0-beta.2

2 years ago

1.0.0-beta.3

2 years ago

1.0.0-beta.1

2 years ago

0.8.0-beta.7

2 years ago

0.8.0-beta.6

2 years ago

0.8.0-beta.5

2 years ago

0.8.0-beta.4

2 years ago

0.8.0-beta.3

2 years ago

0.8.0-beta.2

2 years ago

0.8.0-beta.1

2 years ago

0.8.0-beta.0

2 years ago

0.7.0-beta.0

2 years ago

0.7.0-beta.1

2 years ago

0.7.0-alpha.14

2 years ago

0.7.0-alpha.13

2 years ago

0.7.0-alpha.12

2 years ago

0.7.0-alpha.11

2 years ago

0.7.0-alpha.10

2 years ago

0.7.0-alpha.9

2 years ago

0.7.0-alpha.7

2 years ago

0.7.0-alpha.8

2 years ago

0.7.0-alpha.6

2 years ago

0.7.0-alpha.5

2 years ago

0.7.0-alpha.3

2 years ago

0.7.0-alpha.4

2 years ago

0.7.0-alpha.2

2 years ago

0.7.0-alpha.1

2 years ago

0.7.0-alpha.0

2 years ago

0.6.0-beta.0

2 years ago

0.5.0-beta.5

2 years ago

0.5.0-beta.4

2 years ago

0.5.0-beta.3

2 years ago

0.5.0-beta.2

2 years ago

0.5.0-beta.1

2 years ago

0.4.0-beta.2

2 years ago

0.4.0-beta.1

2 years ago

0.3.0-beta.1

2 years ago

0.2.0-beta.1

2 years ago

0.1.0-beta.1

2 years ago

0.0.1-alpha.33

2 years ago

0.0.1-alpha.30

2 years ago

0.0.1-alpha.32

2 years ago

0.0.1-alpha.31

2 years ago

0.0.1-alpha.29

2 years ago

0.0.1-alpha.28

2 years ago

0.0.1-alpha.25

3 years ago

0.0.1-alpha.27

3 years ago

0.0.1-alpha.26

3 years ago

0.0.1-alpha.23

3 years ago

0.0.1-alpha.22

3 years ago

0.0.1-alpha.21

3 years ago

0.0.1-alpha.20

3 years ago

0.0.1-alpha.19

3 years ago

0.0.1-alpha.18

3 years ago

0.0.1-alpha.17

3 years ago

0.0.1-alpha.16

3 years ago

0.0.1-alpha.15

3 years ago

0.0.1-alpha.14

3 years ago

0.0.1-alpha.13

3 years ago

0.0.1-alpha.12

3 years ago