Skip to content

Fix typo in no-useless-non-capturing-group #555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/short-dingos-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-regexp": patch
---

Fix typo in `no-useless-non-capturing-group`
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ The `plugin:regexp/all` config enables all rules. It's meant for testing, not fo
| [letter-case](https://ota-meshi.github.io/eslint-plugin-regexp/rules/letter-case.html) | enforce into your favorite case | | | 🔧 | |
| [match-any](https://ota-meshi.github.io/eslint-plugin-regexp/rules/match-any.html) | enforce match any character style | ✅ | | 🔧 | |
| [no-useless-escape](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-escape.html) | disallow unnecessary escape characters in RegExp | ✅ | | 🔧 | |
| [no-useless-non-capturing-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html) | disallow unnecessary Non-capturing group | ✅ | | 🔧 | |
| [no-useless-non-capturing-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html) | disallow unnecessary non-capturing group | ✅ | | 🔧 | |
| [prefer-character-class](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html) | enforce using character class | ✅ | | 🔧 | |
| [prefer-d](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html) | enforce using `\d` | ✅ | | 🔧 | |
| [prefer-lookaround](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html) | prefer lookarounds over capturing group that do not replace | | | 🔧 | |
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ sidebarDepth: 0
| [letter-case](letter-case.md) | enforce into your favorite case | | | 🔧 | |
| [match-any](match-any.md) | enforce match any character style | ✅ | | 🔧 | |
| [no-useless-escape](no-useless-escape.md) | disallow unnecessary escape characters in RegExp | ✅ | | 🔧 | |
| [no-useless-non-capturing-group](no-useless-non-capturing-group.md) | disallow unnecessary Non-capturing group | ✅ | | 🔧 | |
| [no-useless-non-capturing-group](no-useless-non-capturing-group.md) | disallow unnecessary non-capturing group | ✅ | | 🔧 | |
| [prefer-character-class](prefer-character-class.md) | enforce using character class | ✅ | | 🔧 | |
| [prefer-d](prefer-d.md) | enforce using `\d` | ✅ | | 🔧 | |
| [prefer-lookaround](prefer-lookaround.md) | prefer lookarounds over capturing group that do not replace | | | 🔧 | |
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-useless-non-capturing-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pageClass: "rule-details"
sidebarDepth: 0
title: "regexp/no-useless-non-capturing-group"
description: "disallow unnecessary Non-capturing group"
description: "disallow unnecessary non-capturing group"
since: "v0.4.0"
---
# regexp/no-useless-non-capturing-group
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-useless-non-capturing-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function isTopLevel(group: Group): boolean {
export default createRule("no-useless-non-capturing-group", {
meta: {
docs: {
description: "disallow unnecessary Non-capturing group",
description: "disallow unnecessary non-capturing group",
category: "Stylistic Issues",
recommended: true,
},
Expand Down