Skip to content

Commit c8d53c2

Browse files
committed
0.4.0
1 parent 559fa11 commit c8d53c2

8 files changed

+36
-10
lines changed

docs/rules/negation.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/negation"
55
description: "enforce use of escapes on negation"
6+
since: "v0.4.0"
67
---
78
# regexp/negation
89

910
> enforce use of escapes on negation
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
@@ -49,6 +49,10 @@ var foo = /[^\P{ASCII}]/u
4949

5050
Nothing.
5151

52+
## :rocket: Version
53+
54+
This rule was introduced in eslint-plugin-regexp v0.4.0
55+
5256
## :mag: Implementation
5357

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

docs/rules/no-dupe-disjunctions.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-dupe-disjunctions"
55
description: "disallow duplicate disjunctions"
6+
since: "v0.4.0"
67
---
78
# regexp/no-dupe-disjunctions
89

910
> disallow duplicate disjunctions
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 disallows duplicate disjunctions.
@@ -38,6 +37,10 @@ var foo = /[ab]|[ba]/
3837

3938
Nothing.
4039

40+
## :rocket: Version
41+
42+
This rule was introduced in eslint-plugin-regexp v0.4.0
43+
4144
## :mag: Implementation
4245

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

docs/rules/no-useless-escape.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-escape"
55
description: "disallow unnecessary escape characters in RegExp"
6+
since: "v0.4.0"
67
---
78
# regexp/no-useless-escape
89

910
> disallow unnecessary escape characters in RegExp
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 unnecessary escape characters in RegExp.
@@ -61,6 +60,10 @@ Nothing.
6160

6261
[no-useless-escape]: https://eslint.org/docs/rules/no-useless-escape
6362

63+
## :rocket: Version
64+
65+
This rule was introduced in eslint-plugin-regexp v0.4.0
66+
6467
## :mag: Implementation
6568

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

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

910
> disallow unnecessary Non-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>
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-d])/
3535

3636
Nothing.
3737

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

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

docs/rules/order-in-character-class.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/order-in-character-class"
55
description: "enforces elements order in character class"
6+
since: "v0.4.0"
67
---
78
# regexp/order-in-character-class
89

910
> enforces elements order in character class
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
@@ -49,6 +49,10 @@ var foo = /[b-fa]/
4949

5050
- `"order"` ... An array of your preferred order. The default is `["\\s", "\\w", "\\d", "\\p", "*",]`.
5151

52+
## :rocket: Version
53+
54+
This rule was introduced in eslint-plugin-regexp v0.4.0
55+
5256
## :mag: Implementation
5357

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

docs/rules/prefer-character-class.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-character-class"
55
description: "enforce using character class"
6+
since: "v0.4.0"
67
---
78
# regexp/prefer-character-class
89

910
> enforce using character class
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
@@ -33,6 +33,10 @@ var foo = /a|b|c/
3333

3434
Nothing.
3535

36+
## :rocket: Version
37+
38+
This rule was introduced in eslint-plugin-regexp v0.4.0
39+
3640
## :mag: Implementation
3741

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

docs/rules/prefer-range.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-range"
55
description: "enforce using character class range"
6+
since: "v0.4.0"
67
---
78
# regexp/prefer-range
89

910
> enforce using character class range
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-cd-f]/
3636

3737
Nothing.
3838

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

4145
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/prefer-range.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.3.1",
3+
"version": "0.4.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)