Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat(eslint-plugin): [no-magic-numbers] ignoreTypeIndexes option (#4789)
* feat(eslint-plugin): [no-magic-numbers] ignoreTypeIndexes option Add a new `ignoreTypeIndexes` option to the `no-magic-numbers` rule to allow magic numbers in type index access (eg. `Foo[4]`). * chore: refactor rule to report violations early * feat: [no-magic-numbers] handle intersections & nested typed indexed access
- Loading branch information
1 parent
8e17f56
commit 5e79451
Showing
4 changed files
with
407 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.