no-string-based-x rules throw errors in Vue SFC #859
Comments
Indeed. Sadly, this is a duplicate of palantir/tslint#2099 and there's nothing we can really do here 😢 |
@jwhitmarsh I've tried your example and config with latest
Could you try to update If you still ahve problem reproduced - could you please create git repo with minimal reproduce case and share link here? Will reopen this issue if will be able to reproduce. |
@IllusionMH Good spot, sorry I didn't test a new project, only existing code. I've replicated it here https://github.com/jwhitmarsh/test-vue. It looks like calling EDIT: I should add, that is a recently created new project, so it is using |
Thanks for the repro. Was able to see exception in console and will investigate this one. |
@jwhitmarsh I've checked this issue and looks like root cause is caused by external factors. As for this rules - it is only possible to mitigate negative impact of this exception - catch it and use simplified fallback logic. This is the way |
@jwhitmarsh
|
LGTM! Thanks everyone, really appreciate it! |
Bug Report
tslint-microsoft-contrib
version: 6.1.1TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Expected behavior
Not to throw an error
The text was updated successfully, but these errors were encountered: