Skip to content

Commit 9cc53a1

Browse files
committed
1.2.0
1 parent e163036 commit 9cc53a1

9 files changed

+37
-13
lines changed

docs/rules/no-contradiction-with-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-contradiction-with-assertion"
55
description: "disallow elements that contradict assertions"
6+
since: "v1.2.0"
67
---
78
# regexp/no-contradiction-with-assertion
89

910
> disallow elements that contradict 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
This rule reports elements that contradict an assertion. All elements reported by this rule fall into one of two categories:
@@ -74,6 +73,10 @@ Nothing.
7473

7574
[regexp/no-useless-assertions]: ./no-useless-assertions.md
7675

76+
## :rocket: Version
77+
78+
This rule was introduced in eslint-plugin-regexp v1.2.0
79+
7780
## :mag: Implementation
7881

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

docs/rules/no-control-character.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-control-character"
55
description: "disallow control characters"
6+
since: "v1.2.0"
67
---
78
# regexp/no-control-character
89

910
> disallow 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>
12-
1312
## :book: Rule Details
1413

1514
This rule reports control characters.
@@ -43,6 +42,10 @@ Nothing.
4342

4443
[no-control-regex]: https://eslint.org/docs/rules/no-control-regex
4544

45+
## :rocket: Version
46+
47+
This rule was introduced in eslint-plugin-regexp v1.2.0
48+
4649
## :mag: Implementation
4750

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

docs/rules/no-empty-character-class.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-character-class"
55
description: "disallow character classes that match no characters"
6+
since: "v1.2.0"
67
---
78
# regexp/no-empty-character-class
89

910
> disallow character classes that match no 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>
12-
1312
## :book: Rule Details
1413

1514
This rule reports character classes that cannot match any characters.
@@ -46,6 +45,10 @@ Nothing.
4645

4746
[no-empty-character-class]: https://eslint.org/docs/rules/no-empty-character-class
4847

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

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

docs/rules/no-misleading-unicode-character.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-misleading-unicode-character"
55
description: "disallow multi-code-point characters in character classes and quantifiers"
6+
since: "v1.2.0"
67
---
78
# regexp/no-misleading-unicode-character
89

910
> disallow multi-code-point characters in character classes and 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>
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
@@ -64,6 +64,10 @@ var foo = /[❇️🏳️‍🌈👨‍👩‍👦]❤️/;
6464

6565
[no-misleading-character-class]: https://eslint.org/docs/rules/no-misleading-character-class
6666

67+
## :rocket: Version
68+
69+
This rule was introduced in eslint-plugin-regexp v1.2.0
70+
6771
## :mag: Implementation
6872

6973
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-misleading-unicode-character.ts)

docs/rules/prefer-lookaround.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/prefer-lookaround"
55
description: "prefer lookarounds over capturing group that do not replace"
6+
since: "v1.2.0"
67
---
78
# regexp/prefer-lookaround
89

910
> prefer lookarounds over capturing group that do not replace
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
@@ -42,6 +42,10 @@ var str = 'JavaScript'.replace(/Java(Script)/g, 'Type$1')
4242
- `strictTypes` ... If `true`, strictly check the type of object to determine if the regex instance was used in `replace()` and `replaceAll()`. Default is `true`.
4343
This option is always on when using TypeScript.
4444

45+
## :rocket: Version
46+
47+
This rule was introduced in eslint-plugin-regexp v1.2.0
48+
4549
## :mag: Implementation
4650

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

docs/rules/prefer-named-capture-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/prefer-named-capture-group"
55
description: "enforce using named capture groups"
6+
since: "v1.2.0"
67
---
78
# regexp/prefer-named-capture-group
89

910
> enforce using named capture groups
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 capturing groups without a name.
@@ -41,6 +40,10 @@ Nothing.
4140

4241
[prefer-named-capture-group]: https://eslint.org/docs/rules/prefer-named-capture-group
4342

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

4649
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/prefer-named-capture-group.ts)

docs/rules/require-unicode-regexp.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/require-unicode-regexp"
55
description: "enforce the use of the `u` flag"
6+
since: "v1.2.0"
67
---
78
# regexp/require-unicode-regexp
89

910
> enforce the use of the `u` flag
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
@@ -47,6 +47,10 @@ Nothing.
4747

4848
[require-unicode-regexp]: https://eslint.org/docs/rules/require-unicode-regexp
4949

50+
## :rocket: Version
51+
52+
This rule was introduced in eslint-plugin-regexp v1.2.0
53+
5054
## :mag: Implementation
5155

5256
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/require-unicode-regexp.ts)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "1.1.0",
3+
"version": "1.2.0",
44
"description": "ESLint plugin for finding RegExp mistakes and RegExp style guide violations.",
55
"engines": {
66
"node": "^12 || >=14"

0 commit comments

Comments
 (0)