You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a template rule which needs ts file info. I wish to error on every observable with async pipe coming from a store service that isn't used inside viewModel. For that to work I need to access the TS source file from the template and I can't find any reference in the template AST. Is it possible? Or I need to create the TS source file myself from file name manipulation and try and match the variable names?
I know eslint isn't really built for multiple files linting but I can see no other way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to create a template rule which needs ts file info. I wish to error on every observable with async pipe coming from a store service that isn't used inside viewModel. For that to work I need to access the TS source file from the template and I can't find any reference in the template AST. Is it possible? Or I need to create the TS source file myself from file name manipulation and try and match the variable names?
I know eslint isn't really built for multiple files linting but I can see no other way.
Beta Was this translation helpful? Give feedback.
All reactions