Skip to content

regexp/use-ignore-case

💼 This rule is enabled in the following configs: 🟢 flat/recommended, 🔵 recommended.

🔧 This rule is automatically fixable by the --fix CLI option.

use the i flag if it simplifies the pattern

📖 Rule Details

This rule reports regular expressions that can be simplified by adding the i flag.

Now loading...

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-regexp v1.4.0

🔍 Implementation