Feature Request: Extending @typescript-eslint/no-magic-numbers
to allow for readonly number[]
#238
Closed
3 of 4 tasks
Labels
enhancement
New feature or request
Clear and concise description of the problem
There's a use case that comes up once in a while to define "magic" numbers in an array that itself is meant to be used as a constant.
Suggested solution
Copied from typescript-eslint/typescript-eslint#8102 . Thoughts on allowing (can be locked behind an option) the following?
Fail
Pass
Alternative
The alternative to a eslint-disable comment really isn't preferable and really verbose:
Additional context
No response
Validations
Contributes
The text was updated successfully, but these errors were encountered: