We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The typecheck-number rule is reacting to my code, when I'm checking if a input tag is of type number. type === 'number'
type === 'number'
Should only react on: typeof type === 'number'
typeof type === 'number'
The text was updated successfully, but these errors were encountered:
That's normal.
If the developer use the next snippet, ESLint should throw an error
const type = typeof variable type === 'number'
https://github.com/Gillespie59/eslint-plugin-angular/blob/master/test/typecheck-number.js#L37
Sorry, something went wrong.
No because now I use it like this:
let input = document.findByClassName('my-input') let type = input.attrs.type if(type === 'number') return true
I don't want to use angular.isNumber() here :)
Could you send a PR with a failing test ?
No branches or pull requests
The typecheck-number rule is reacting to my code, when I'm checking if a input tag is of type number.
type === 'number'
Should only react on:
typeof type === 'number'
The text was updated successfully, but these errors were encountered: