Skip to content

Commit bc5aae0

Browse files
committed
0.6.0
1 parent 81a7846 commit bc5aae0

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

docs/rules/no-legacy-features.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-legacy-features"
55
description: "disallow legacy RegExp features"
6+
since: "v0.6.0"
67
---
78
# regexp/no-legacy-features
89

910
> disallow legacy RegExp features
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
This rule disallow legacy RegExp features.
@@ -71,6 +70,10 @@ regexObj.compile('new foo', 'g');
7170

7271
- [Legacy RegExp features in JavaScript](https://github.com/tc39/proposal-regexp-legacy-features/)
7372

73+
## :rocket: Version
74+
75+
This rule was introduced in eslint-plugin-regexp v0.6.0
76+
7477
## :mag: Implementation
7578

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

docs/rules/no-unused-capturing-group.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-unused-capturing-group"
55
description: "disallow unused capturing group"
6+
since: "v0.6.0"
67
---
78
# regexp/no-unused-capturing-group
89

910
> disallow unused capturing group
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
This rule aims to optimize regular expressions by replacing unused capturing groups with non-capturing groups.
@@ -57,6 +56,10 @@ Nothing.
5756

5857
- [regexp/no-useless-dollar-replacements](./no-useless-dollar-replacements.md)
5958

59+
## :rocket: Version
60+
61+
This rule was introduced in eslint-plugin-regexp v0.6.0
62+
6063
## :mag: Implementation
6164

6265
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-unused-capturing-group.ts)

docs/rules/no-useless-dollar-replacements.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-useless-dollar-replacements"
55
description: "disallow useless `$` replacements in replacement string"
6+
since: "v0.6.0"
67
---
78
# regexp/no-useless-dollar-replacements
89

910
> disallow useless `$` replacements in replacement string
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
This rule aims to detect and disallow useless `$` replacements in regular expression replacements.
@@ -56,6 +55,10 @@ Nothing.
5655

5756
- [MDN Web Docs - String.prototype.replace() > Specifying a string as a parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_a_parameter)
5857

58+
## :rocket: Version
59+
60+
This rule was introduced in eslint-plugin-regexp v0.6.0
61+
5962
## :mag: Implementation
6063

6164
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-useless-dollar-replacements.ts)

docs/rules/prefer-escape-replacement-dollar-char.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/prefer-escape-replacement-dollar-char"
55
description: "enforces escape of replacement `$` character (`$$`)."
6+
since: "v0.6.0"
67
---
78
# regexp/prefer-escape-replacement-dollar-char
89

910
> enforces escape of replacement `$` character (`$$`).
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
This rule aims to enforce escape when using the `$` character in replacement pattern of string replacement.
@@ -41,6 +40,10 @@ Nothing.
4140

4241
- [MDN Web Docs - String.prototype.replace() > Specifying a string as a parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_a_parameter)
4342

43+
## :rocket: Version
44+
45+
This rule was introduced in eslint-plugin-regexp v0.6.0
46+
4447
## :mag: Implementation
4548

4649
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/prefer-escape-replacement-dollar-char.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.5.0",
3+
"version": "0.6.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)