-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
false positives with typescript 2.1.4 #184
Comments
Not sure my issues are the same but I would say it looks like false positive too. For the following template (based on ng-boostrap popover example)
And for the following statement in template
|
@mikhailmelnik your issue is duplication of #179 and fixed but not yet published. I believe I worked on @guojenman your issues are not related to codelyzer but seems related to tslint. It is weird that you're no longer getting errors with codelyzer. I'll still check and see what's wrong. |
@mgechev it is 2.0.0-beta.1, installed with angular-cli v1.0.0-beta.22 |
Thanks @mgechev. Weird indeed. I've created minimum reproducible project, which I should've included with the original bug report, but attached below instead. after npm install, btw, loving codelyzer. |
@guojenman thanks for this! It's really helpful! |
@mikhailmelnik the issue is fixed here 20ce61a. |
I'm seeing another instance of this:
Using: |
I'm using:
But still getting the same issue! |
Bug Report
Note: TSLint passes if i remove codelyzer rules & codelyzer from rulesDirectory
TypeScript code being linted
In code below, it's complaining about missing whitespace after equals (=) in the string literal
In code below, it's complaining about missing whitepsaces afer coma (,) inside of the regexp
const hasPercent = /= {0,1}(\.{0,1}\d+)/g.test(this.data.join(','));
In code below, it's complaining about missing semicolon at class closing tag ( } ). It stops complaining if i remove constructor.
with
tslint.json
configuration:The text was updated successfully, but these errors were encountered: