microsoft / dtslint

A utility built on TSLint for linting TypeScript declaration (.d.ts) files.
MIT License
925 stars 86 forks source link

Improve handling of // in strings #328

Closed amcasey closed 3 years ago

amcasey commented 3 years ago

...by searching for // $ instead. This still doesn't consider string boundaries, but is much less likely to occur accidentally (in a URL, for example).

orta commented 3 years ago

CI is fixed in #327 - updated master

amcasey commented 3 years ago

This breaks commented out assertions (as explained by the comment above the line I changed 🤦).