Skip to content

regexp/no-non-standard-flag

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

disallow non-standard flags

📖 Rule Details

This rule reports non-standard flags.

Some JavaScript runtime implementations allow special flags not defined in the ECMAScript standard. These flags are experimental and should not be used in production code.

Now loading...

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-regexp v0.9.0

🔍 Implementation