Add regexp to the plugins section of your eslint.config.js configuration file (you can omit the eslint-plugin- prefix)
and either use one of the two configurations available (recommended or all) or configure the rules you want:
The recommended configuration
The plugin.configs.recommended config enables a subset of the rules that should be most useful to most users.
See lib/configs/rules/recommended.ts for more details.
// eslint.config.jsimport regexpPlugin from "eslint-plugin-regexp"export default [ regexpPlugin.configs.recommended,];
The plugin.configs.all config enables all rules. It's meant for testing, not for production use because it changes with every minor and major version of the plugin. Use it at your own risk.
See lib/configs/rules/all.ts for more details.
:white_check_mark: Rules
💼 Configurations enabled in.
⚠️ Configurations set to warn in.
🟢 Set in the flat/recommended configuration.
🔵 Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.