Skip to content

Commit ed56792

Browse files
committed
0.8.0
1 parent 938a180 commit ed56792

8 files changed

+25
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The rules with the following star :star: are included in the `plugin:regexp/reco
107107
| [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 | :wrench: |
108108
| [regexp/no-useless-non-greedy](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-greedy.html) | disallow unnecessary quantifier non-greedy (`?`) | :wrench: |
109109
| [regexp/no-useless-range](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html) | disallow unnecessary range of characters by using a hyphen | :wrench: |
110-
| [regexp/no-useless-two-nums-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html) | disallow unnecessary `{n,m}` quantifier | :star: |
110+
| [regexp/no-useless-two-nums-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html) | disallow unnecessary `{n,m}` quantifier | :star::wrench: |
111111
| [regexp/optimal-lookaround-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html) | disallow the alternatives of lookarounds that end with a non-constant quantifier | |
112112
| [regexp/order-in-character-class](https://ota-meshi.github.io/eslint-plugin-regexp/rules/order-in-character-class.html) | enforces elements order in character class | :wrench: |
113113
| [regexp/prefer-character-class](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html) | enforce using character class | :wrench: |

docs/rules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The rules with the following star :star: are included in the `plugin:regexp/reco
3535
| [regexp/no-useless-non-capturing-group](./no-useless-non-capturing-group.md) | disallow unnecessary Non-capturing group | :wrench: |
3636
| [regexp/no-useless-non-greedy](./no-useless-non-greedy.md) | disallow unnecessary quantifier non-greedy (`?`) | :wrench: |
3737
| [regexp/no-useless-range](./no-useless-range.md) | disallow unnecessary range of characters by using a hyphen | :wrench: |
38-
| [regexp/no-useless-two-nums-quantifier](./no-useless-two-nums-quantifier.md) | disallow unnecessary `{n,m}` quantifier | :star: |
38+
| [regexp/no-useless-two-nums-quantifier](./no-useless-two-nums-quantifier.md) | disallow unnecessary `{n,m}` quantifier | :star::wrench: |
3939
| [regexp/optimal-lookaround-quantifier](./optimal-lookaround-quantifier.md) | disallow the alternatives of lookarounds that end with a non-constant quantifier | |
4040
| [regexp/order-in-character-class](./order-in-character-class.md) | enforces elements order in character class | :wrench: |
4141
| [regexp/prefer-character-class](./prefer-character-class.md) | enforce using character class | :wrench: |

docs/rules/confusing-quantifier.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "regexp/confusing-quantifier"
55
description: "disallow confusing quantifiers"
6+
since: "v0.8.0"
67
---
78
# regexp/confusing-quantifier
89

910
> disallow confusing quantifiers
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
12-
1312
## :book: Rule Details
1413

1514
Confusing quantifiers are ones which imply one thing but don't deliver on that.
@@ -49,6 +48,10 @@ This rule is compatible with [clean-regex/confusing-quantifier] rule.
4948
[eslint-plugin-clean-regex]: https://github.com/RunDevelopment/eslint-plugin-clean-regex
5049
[clean-regex/confusing-quantifier]: https://github.com/RunDevelopment/eslint-plugin-clean-regex/blob/master/docs/rules/confusing-quantifier.md
5150

51+
## :rocket: Version
52+
53+
This rule was introduced in eslint-plugin-regexp v0.8.0
54+
5255
## :mag: Implementation
5356

5457
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/confusing-quantifier.ts)

docs/rules/no-empty-alternative.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "regexp/no-empty-alternative"
55
description: "disallow alternatives without elements"
6+
since: "v0.8.0"
67
---
78
# regexp/no-empty-alternative
89

910
> disallow alternatives without elements
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
12-
1312
## :book: Rule Details
1413

1514
While (re-)writing long regular expressions, it can happen that one forgets to
@@ -46,6 +45,10 @@ This rule is compatible with [clean-regex/no-empty-alternative] rule.
4645
[clean-regex/no-empty-alternative]: https://github.com/RunDevelopment/eslint-plugin-clean-regex/blob/master/docs/rules/no-empty-alternative.md
4746

4847

48+
## :rocket: Version
49+
50+
This rule was introduced in eslint-plugin-regexp v0.8.0
51+
4952
## :mag: Implementation
5053

5154
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-empty-alternative.ts)

docs/rules/no-lazy-ends.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "regexp/no-lazy-ends"
55
description: "disallow lazy quantifiers at the end of an expression"
6+
since: "v0.8.0"
67
---
78
# regexp/no-lazy-ends
89

910
> disallow lazy quantifiers at the end of an expression
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
12-
1312
## :book: Rule Details
1413

1514
If a lazily quantified element is the last element matched by an expression
@@ -58,6 +57,10 @@ This rule is compatible with [clean-regex/no-lazy-ends] rule.
5857
[eslint-plugin-clean-regex]: https://github.com/RunDevelopment/eslint-plugin-clean-regex
5958
[clean-regex/no-lazy-ends]: https://github.com/RunDevelopment/eslint-plugin-clean-regex/blob/master/docs/rules/no-lazy-ends.md
6059

60+
## :rocket: Version
61+
62+
This rule was introduced in eslint-plugin-regexp v0.8.0
63+
6164
## :mag: Implementation
6265

6366
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-lazy-ends.ts)

docs/rules/no-useless-two-nums-quantifier.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ since: "v0.1.0"
1010
> disallow unnecessary `{n,m}` quantifier
1111
1212
- :gear: This rule is included in `"plugin:regexp/recommended"`.
13+
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
1314

1415
## :book: Rule Details
1516

1617
This rule reports unnecessary `{n,m}` quantifiers.
1718

18-
<eslint-code-block>
19+
<eslint-code-block fix>
1920

2021
```js
2122
/* eslint regexp/no-useless-two-nums-quantifier: "error" */

docs/rules/optimal-lookaround-quantifier.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "regexp/optimal-lookaround-quantifier"
55
description: "disallow the alternatives of lookarounds that end with a non-constant quantifier"
6+
since: "v0.8.0"
67
---
78
# regexp/optimal-lookaround-quantifier
89

910
> disallow the alternatives of lookarounds that end with a non-constant quantifier
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
12-
1312
## :book: Rule Details
1413

1514
Non-constant quantifiers are quantifiers that describe a range (e.g. `?`, `*`,
@@ -68,6 +67,10 @@ This rule is compatible with [clean-regex/optimal-lookaround-quantifier] rule.
6867
[eslint-plugin-clean-regex]: https://github.com/RunDevelopment/eslint-plugin-clean-regex
6968
[clean-regex/optimal-lookaround-quantifier]: https://github.com/RunDevelopment/eslint-plugin-clean-regex/blob/master/docs/rules/optimal-lookaround-quantifier.md
7069

70+
## :rocket: Version
71+
72+
This rule was introduced in eslint-plugin-regexp v0.8.0
73+
7174
## :mag: Implementation
7275

7376
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/optimal-lookaround-quantifier.ts)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-regexp",
3-
"version": "0.7.5",
3+
"version": "0.8.0",
44
"description": "ESLint plugin for finding RegExp mistakes and RegExp style guide violations.",
55
"main": "dist/index.js",
66
"files": [

0 commit comments

Comments
 (0)