Open marcus13371337 opened 5 years ago
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
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 ?
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'