You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
What version of ESLint are you using?
5.11.1
What version of TypeScript are you using?
3.1.1
What version of
typescript-eslint-parser
are you using?Any version from 20.1.0 onwards
What code were you trying to parse?
What did you expect to happen?
No errors
What happened?
In
[email protected]
, code passes with no errors.With
[email protected]
onwards, the errors below occur:The magic numbers that the rule is complaining about are the allowed values of the Typescript numeric literal type
type Amount = 10 | -10
.I'm not aware of any way to define a numeric literal type that doesn't violate the magic numbers rule?
The text was updated successfully, but these errors were encountered: