Releases: ota-meshi/eslint-plugin-regexp
Releases · ota-meshi/eslint-plugin-regexp
v1.3.0
v1.2.0
✨ Enhancements
- #319 Added
regexp/no-contradiction-with-assertion
rule. - #324 Added
regexp/prefer-lookaround
rule. - #329 Added
regexp/no-empty-character-class
rule. - #330 Added
regexp/prefer-named-capture-group
rule. - #331 Added
regexp/require-unicode-regexp
rule. - #332 Added
regexp/no-misleading-unicode-character
rule. - #333 Added
regexp/no-control-character
rule. - #316 Improved
regexp/no-useless-assertion
rule for nested assertions.
🐛 Bug Fixes
v1.1.0
v1.0.0
💥 Breaking Changes
- #260 Dropped support Node.js v10.x and v13.x.
- Deprecated rules
- #241 Removed
disallowNeverMatch
andalwaysReportExponentialBacktracking
options fromregexp/no-dupe-disjunctions
rule. - #49 Changed
plugin:regexp/recommended
config- Added rules.
regexp/confusing-quantifier
rule.regexp/control-character-escape
rule.regexp/negation
rule.regexp/no-dupe-disjunctions
rule.regexp/no-empty-alternative
rule.regexp/no-empty-capturing-group
rule.regexp/no-invalid-regexp
rule.regexp/no-lazy-ends
rule.regexp/no-legacy-features
rule.regexp/no-non-standard-flag
rule.regexp/no-obscure-range
rule.regexp/no-optional-assertion
rule.regexp/no-potentially-useless-backreference
rule.regexp/no-super-linear-backtracking
rule.regexp/no-trivially-nested-assertion
rule.regexp/no-trivially-nested-quantifier
rule.regexp/no-unused-capturing-group
rule.regexp/no-useless-assertions
rule.regexp/no-useless-character-class
rule.regexp/no-useless-dollar-replacements
rule.regexp/no-useless-escape
rule.regexp/no-useless-flag
rule.regexp/no-useless-lazy
rule.regexp/no-useless-non-capturing-group
rule.regexp/no-useless-quantifier
rule.regexp/no-useless-range
rule.regexp/no-zero-quantifier
rule.regexp/optimal-lookaround-quantifier
rule.regexp/optimal-quantifier-concatenation
rule.regexp/prefer-character-class
rule.regexp/prefer-predefined-assertion
rule.regexp/prefer-range
rule.regexp/prefer-unicode-codepoint-escapes
rule.regexp/sort-flags
rule.regexp/strict
rule.no-empty-character-class
rule.
- Removed
no-invalid-regexp
rule.
- Added rules.
- #49 Changed default option
- Changed
hexadecimalEscape
option ofregexp/letter-case
rule fromignore
tolowercase
. - Changed
controlEscape
option ofregexp/letter-case
rule fromignore
touppercase
.
- Changed
✨ Enhancements
- #276 Added autofix and suggestion for
regexp/no-unused-capturing-group
rule. - #256, #297 Improved
regexp/sort-alternatives
rule. - #279 Improved
regexp/optimal-quantifier-concatenation
rule. - #281 Improved
regexp/no-dupe-disjunctions
rule. - #282, #286 Improved reporting when patterns are constructed with complex expressions.
- #285 Added autofix for
g
andy
flags toregexp/no-useless-flag
rule and improved the message. - #287 Improved
regexp/no-non-standard-flag
rule andregexp/sort-flags
rule. - #288 Added
regexp/no-invalid-regexp
rule. - #292 Added
strictTypes
option toregexp/no-useless-flag
rule.
🐛 Bug Fixes
- #289, #295 Fixed to escape when displaying a pattern in a message.
- #293 Fixed
regexp/no-useless-lazy
for quantifiers with min=0.
⚙️ Updates
- #294 Shrink report range of
regexp/no-useless-non-capturing-group
rule. - #296 Upgraded
regexp-ast-analysis
.
From now on, it follows ESLint's Semantic Versioning Policy.
v0.13.2
v0.13.1
v0.13.0
✨ Enhancements
- #242 Added
regexp/no-super-linear-backtracking
rule. - #246 Added
regexp/no-super-linear-move
rule. - #250 Added
plugin:regexp/all
config.
⚙️ Updates
- #248 Changed
regexp/strict
rule to suggest octal fixes. - #261 Added support for
d
flag. - #257 Changed
regexp/optimal-quantifier-concatenation
rule to provide consistent reporting.
🐛 Bug fixes
v0.12.1
v0.12.0
✨ Enhancements
- #220 Added
regexp/strict
rule. - #235 Added
regexp/sort-alternatives
rule. - #224 Added support for
y
flag toregexp/no-useless-flag
rule. - #215 Added new option to allow only partial use to the
allowTop
option of regexp/no-useless-non-capturing-group rule. - #216 Added
ignorePartial
option toregexp/no-lazy-ends
rule. - #226 Made the
regexp/no-useless-escape
rule to auto-fixable.
🐛 Bug Fixes
- #219 Fixed
regexp/prefer-range
for adjacent but not-allowed ranges.
⚙️ Updates
v0.11.0
✨ Enhancements
- #207 Added
regexp/optimal-quantifier-concatenation
rule. - #204 Added
reportExponentialBacktracking
options toregexp/no-dupe-disjunctions
rule. And changedalwaysReportExponentialBacktracking
option to deprecated. - #204 Added
reportUnreachable
options toregexp/no-dupe-disjunctions
rule.
⚙️ Updates
- #208 Changed
regexp/prefer-quantifier
rule to no longer report quantifiers that can be simplified. Instead,regexp/optimal-quantifier-concatenation
rule reports it.