[generic-type-naming] Support regex literal for config properties that accept regex string #143
Labels
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Would be nice to be able to use regex literals to not have to double-escape certain characters when using JS-based ESLint config.
Before
After
It also means it becomes syntax highlighted and ESLint (through some built-in rules) can prevent some common mistakes when you lint the config itself.
This would require changes to the following rules:
@typescript-eslint/generic-type-naming
@typescript-eslint/member-naming
@typescript-eslint/no-unused-vars
Related ESLint issue: eslint/eslint#11318
The text was updated successfully, but these errors were encountered: