-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Linting all files with a global rule results in:
Linting "demo"...
Cannot read property 'forEach' of undefined
Occurred while linting ./apps/demo/src/app/app.component.html:1
I have a sample repo that reproduces the issue here: https://github.com/skoblenick/eslint-plugin-import-issue
I realize I could technically move the plugin into an override
that is specific to the .ts
files however it shouldn't be necessary when the code could just be more defensive. I could imagine a use case where I may have preprocessor working on imports within a html or template file (like an hbs
) and I want them ordered (hence a lint check).
kimskovhusandersenljharb and kimskovhusandersen
Metadata
Metadata
Assignees
Labels
No labels