[@typescript-eslint/no-magic-numbers] enum's are treated as "magic numbers" #573
Labels
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Repro
Expected Result
Don't treat it as a magic number. It will be used in the code somewhere as
HttpStatus.Ok
that's definitely a defined number.Actual Result
The value
200
is treated as a magic number. Probably because to define a different starting point forenum
is to use=
which confuses linter.Additional Info
Versions
@typescript-eslint/eslint-plugin
1.9.0
@typescript-eslint/parser
1.9.0
TypeScript
3.3.3333
ESLint
5.16.0
node
10.15.3
npm
6.4.1
The text was updated successfully, but these errors were encountered: