ESLint plugin for finding RegExp mistakes and RegExp style guide violations.
82
{
"context": "Evaluates whether the solution wires eslint-plugin-regexp into ESLint. Checks that regex style normalization rules for character classes, quantifiers, flags, and escape sequences are applied when linting or autofixing provided sources.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Plugin wiring",
"description": "ESLint configuration imports eslint-plugin-regexp and registers it in the plugins section (legacy or flat) so its regex rules run in programmatic linting.",
"max_score": 15
},
{
"name": "Class normalization",
"description": "Configuration enables a character-class style rule such as regexp/prefer-d, regexp/prefer-w, or regexp/sort-character-class-elements at error severity to normalize classes like turning [0-9] into \\d.",
"max_score": 25
},
{
"name": "Quantifier shorthand",
"description": "Configuration turns on regexp/prefer-plus-quantifier or regexp/prefer-quantifier as an error to rewrite verbose quantifiers (for example a{1,} -> a+).",
"max_score": 20
},
{
"name": "Flag ordering",
"description": "Configuration enforces canonical flag order via regexp/sort-flags with autofix enabled so patterns such as /abc/ig are reordered deterministically.",
"max_score": 20
},
{
"name": "Escape enforcement",
"description": "An escape-focused rule like regexp/control-character-escape or regexp/hexadecimal-escape is enabled at error level to flag unescaped control characters and normalize escape style.",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-eslint-plugin-regexpevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10