-
Notifications
You must be signed in to change notification settings - Fork 887
Ban rule not picking up methods correctly #2868
Comments
I guess you are using a globally installed tslint for linting your project. Unfortunately you can't overwrite the rules directory for builtin rules. Either use |
Hi @ajafff,
If you run tslint with example.ts and tslint-custom_ban.json with the content listed in my original post and the following command, does it work for you?
Thanks tons in advance for your help. |
The bug with the empty outfile is fixed by #2867 which will be part of the next release |
fix for #2867 is now available in v5.4.3 |
Thanks tons guys! |
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Only one issue from no-eval rule found:
Expected behavior
Three issues should be reported. One eval from the no-eval rule, one eval from the ban rule and one trustAsHtml from ban rule.
I copied the json configuration from the guidance in https://palantir.github.io/tslint/rules/ban/, so I hope I got it right :)
The text was updated successfully, but these errors were encountered: