Skip to content

How to exclude index.html from linting by @angular-eslint/template? #1213

Answered by JamesHenry
belyan asked this question in Q&A
Discussion options

You must be logged in to vote

excludedFiles excludes the file from consideration for that override block. So what you are doing is instructing ESLint not to use the Angular HTML parsing logic and fallback to its default (JavaScript) which of course blows up on HTML.

ignorePatterns or using a .eslintignore file is the way to go

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@belyan
Comment options

Answer selected by belyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants