salesforce / eslint-plugin-lwc

Official ESLint rules for LWC
MIT License
98 stars 32 forks source link

Improve TypeScript support by catching type assertions #154

Open wjhsf opened 6 months ago

wjhsf commented 6 months ago

Some rules break when we use type assertions (e.g. document.querySelector('td') is invalid, but (document as any).querySelector('td') is considered valid. In order to avoid false negatives, we should update the rules to account for type assertions.