Skip to content

Commit 48a1469

Browse files
committed
0.9.0
1 parent 258c975 commit 48a1469

15 files changed

+67
-20
lines changed

docs/rules/control-character-escape.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "regexp/control-character-escape"
55
description: "enforce consistent escaping of control characters"
6+
since: "v0.9.0"
67
---
78
# regexp/control-character-escape
89

910
> enforce consistent escaping of control characters
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1212
- :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.
1313

1414
## :book: Rule Details
@@ -38,6 +38,10 @@ var foo = RegExp("\\u000a");
3838

3939
Nothing.
4040

41+
## :rocket: Version
42+
43+
This rule was introduced in eslint-plugin-regexp v0.9.0
44+
4145
## :mag: Implementation
4246

4347
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/control-character-escape.ts)

docs/rules/hexadecimal-escape.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "regexp/hexadecimal-escape"
55
description: "enforce consistent usage of hexadecimal escape"
6+
since: "v0.9.0"
67
---
78
# regexp/hexadecimal-escape
89

910
> enforce consistent usage of hexadecimal escape
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1212
- :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.
1313

1414
## :book: Rule Details
@@ -67,6 +67,10 @@ var foo = /\x0a/;
6767

6868
- [regexp/unicode-escape](./unicode-escape.md)
6969

70+
## :rocket: Version
71+
72+
This rule was introduced in eslint-plugin-regexp v0.9.0
73+
7074
## :mag: Implementation
7175

7276
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/hexadecimal-escape.ts)

docs/rules/no-non-standard-flag.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-non-standard-flag"
55
description: "disallow non-standard flags"
6+
since: "v0.9.0"
67
---
78
# regexp/no-non-standard-flag
89

910
> disallow non-standard flags
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 reports non-standard flags.
@@ -34,6 +33,10 @@ var foo = RegExp("(?:a|a)*b", "l");
3433

3534
Nothing.
3635

36+
## :rocket: Version
37+
38+
This rule was introduced in eslint-plugin-regexp v0.9.0
39+
3740
## :mag: Implementation
3841

3942
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-non-standard-flag.ts)

docs/rules/no-obscure-range.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-obscure-range"
55
description: "disallow obscure character ranges"
6+
since: "v0.9.0"
67
---
78
# regexp/no-obscure-range
89

910
> disallow obscure character ranges
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
The character range operator (the `-` inside character classes) can easily be misused (mostly unintentionally) to construct non-obvious character class. This rule will disallow all non-obvious uses of the character range operator.
@@ -120,6 +119,10 @@ var foo = /[!-$]/;
120119

121120
</eslint-code-block>
122121

122+
## :rocket: Version
123+
124+
This rule was introduced in eslint-plugin-regexp v0.9.0
125+
123126
## :mag: Implementation
124127

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

docs/rules/no-optional-assertion.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-optional-assertion"
55
description: "disallow optional assertions"
6+
since: "v0.9.0"
67
---
78
# regexp/no-optional-assertion
89

910
> disallow optional assertions
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
Assertions that are quantified (directly or indirectly) can be considered optional if the quantifier has a minimum of zero.
@@ -51,6 +50,10 @@ This rule is compatible with [clean-regex/no-optional-assertion] rule.
5150
[eslint-plugin-clean-regex]: https://github.com/RunDevelopment/eslint-plugin-clean-regex
5251
[clean-regex/no-optional-assertion]: https://github.com/RunDevelopment/eslint-plugin-clean-regex/blob/master/docs/rules/no-optional-assertion.md
5352

53+
## :rocket: Version
54+
55+
This rule was introduced in eslint-plugin-regexp v0.9.0
56+
5457
## :mag: Implementation
5558

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

docs/rules/no-potentially-useless-backreference.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-potentially-useless-backreference"
55
description: "disallow backreferences that reference a group that might not be matched"
6+
since: "v0.9.0"
67
---
78
# regexp/no-potentially-useless-backreference
89

910
> disallow backreferences that reference a group that might not be matched
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 the referenced group of a backreference is not matched because some other path leads to the backreference, the backreference will trivially accept (e.g. `/(?:(a)|b)\1/`). The same will happen if the captured text of the referenced group was reset before reaching the backreference.
@@ -52,6 +51,10 @@ This rule is compatible with [clean-regex/no-potentially-empty-backreference] ru
5251
[eslint-plugin-clean-regex]: https://github.com/RunDevelopment/eslint-plugin-clean-regex
5352
[clean-regex/no-potentially-empty-backreference]: https://github.com/RunDevelopment/eslint-plugin-clean-regex/blob/master/docs/rules/no-potentially-empty-backreference.md
5453

54+
## :rocket: Version
55+
56+
This rule was introduced in eslint-plugin-regexp v0.9.0
57+
5558
## :mag: Implementation
5659

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

docs/rules/no-trivially-nested-assertion.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "regexp/no-trivially-nested-assertion"
55
description: "disallow trivially nested assertions"
6+
since: "v0.9.0"
67
---
78
# regexp/no-trivially-nested-assertion
89

910
> disallow trivially nested assertions
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1212
- :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.
1313

1414
## :book: Rule Details
@@ -35,6 +35,10 @@ var foo = /a(?=(?!a))/;
3535

3636
Nothing.
3737

38+
## :rocket: Version
39+
40+
This rule was introduced in eslint-plugin-regexp v0.9.0
41+
3842
## :mag: Implementation
3943

4044
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-trivially-nested-assertion.ts)

docs/rules/no-trivially-nested-quantifier.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "regexp/no-trivially-nested-quantifier"
55
description: "disallow nested quantifiers that can be rewritten as one quantifier"
6+
since: "v0.9.0"
67
---
78
# regexp/no-trivially-nested-quantifier
89

910
> disallow nested quantifiers that can be rewritten as one 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>
1212
- :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.
1313

1414
## :book: Rule Details
@@ -36,6 +36,10 @@ var foo = /(?:a{4,}){5}/;
3636

3737
Nothing.
3838

39+
## :rocket: Version
40+
41+
This rule was introduced in eslint-plugin-regexp v0.9.0
42+
3943
## :mag: Implementation
4044

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

docs/rules/no-useless-assertions.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-assertions"
55
description: "disallow assertions that are known to always accept (or reject)"
6+
since: "v0.9.0"
67
---
78
# regexp/no-useless-assertions
89

910
> disallow assertions that are known to always accept (or reject)
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
Some assertion are unnecessary because the rest of the pattern forces them to
@@ -52,6 +51,10 @@ This rule is compatible with [clean-regex/no-unnecessary-assertions] rule.
5251
[eslint-plugin-clean-regex]: https://github.com/RunDevelopment/eslint-plugin-clean-regex
5352
[clean-regex/no-unnecessary-assertions]: https://github.com/RunDevelopment/eslint-plugin-clean-regex/blob/master/docs/rules/no-unnecessary-assertions.md
5453

54+
## :rocket: Version
55+
56+
This rule was introduced in eslint-plugin-regexp v0.9.0
57+
5558
## :mag: Implementation
5659

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

docs/rules/no-useless-flag.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "regexp/no-useless-flag"
55
description: "disallow unnecessary regex flags"
6+
since: "v0.9.0"
67
---
78
# regexp/no-useless-flag
89

910
> disallow unnecessary regex flags
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1212
- :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.
1313

1414
## :book: Rule Details
@@ -158,6 +158,10 @@ This rule is compatible with [clean-regex/no-unnecessary-flag] rule.
158158

159159
[clean-regex/no-unnecessary-flag]: https://github.com/RunDevelopment/eslint-plugin-clean-regex/blob/master/docs/rules/no-unnecessary-flag.md
160160

161+
## :rocket: Version
162+
163+
This rule was introduced in eslint-plugin-regexp v0.9.0
164+
161165
## :mag: Implementation
162166

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

0 commit comments

Comments
 (0)