Skip to content

Commit 75ce6a6

Browse files
committed
0.3.0
1 parent c18a1b4 commit 75ce6a6

8 files changed

+36
-9
lines changed

docs/rules/letter-case.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/letter-case"
55
description: "enforce into your favorite case"
6+
since: "v0.3.0"
67
---
78
# regexp/letter-case
89

910
> enforce into your favorite case
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
@@ -50,6 +50,10 @@ var foo = /\u000A/
5050
- `caseInsensitive` ... Specifies the letter case when the `i` flag is present.
5151
- `unicodeEscape` ... Specifies the letter case when the unicode escapes.
5252

53+
## :rocket: Version
54+
55+
This rule was introduced in eslint-plugin-regexp v0.3.0
56+
5357
## :mag: Implementation
5458

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

docs/rules/no-useless-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/no-useless-character-class"
55
description: "disallow character class with one character"
6+
since: "v0.3.0"
67
---
78
# regexp/no-useless-character-class
89

910
> disallow character class with one 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>
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
@@ -69,6 +69,10 @@ var foo = /a[b]c/;
6969
[no-empty-character-class]: https://eslint.org/docs/rules/no-empty-character-class
7070
[no-div-regex]: https://eslint.org/docs/rules/no-div-regex
7171

72+
## :rocket: Version
73+
74+
This rule was introduced in eslint-plugin-regexp v0.3.0
75+
7276
## :mag: Implementation
7377

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

docs/rules/no-useless-non-greedy.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-greedy"
55
description: "disallow unnecessary quantifier non-greedy (`?`)"
6+
since: "v0.3.0"
67
---
78
# regexp/no-useless-non-greedy
89

910
> disallow unnecessary quantifier non-greedy (`?`)
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 = /a{2,2}?/;
3838

3939
Nothing.
4040

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

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

docs/rules/no-useless-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/no-useless-range"
55
description: "disallow unnecessary range of characters by using a hyphen"
6+
since: "v0.3.0"
67
---
78
# regexp/no-useless-range
89

910
> disallow unnecessary range of characters by using a hyphen
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-b]/
3535

3636
Nothing.
3737

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

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

docs/rules/prefer-regexp-exec.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-regexp-exec"
55
description: "enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided"
6+
since: "v0.3.0"
67
---
78
# regexp/prefer-regexp-exec
89

910
> enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
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
`RegExp#exec` is faster than `String#match` and both work the same when not using the `/g` flag.
1413

1514
## :book: Rule Details
@@ -50,6 +49,10 @@ Nothing.
5049

5150
- [@typescript-eslint/prefer-regexp-exec](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-regexp-exec.md)
5251

52+
## :rocket: Version
53+
54+
This rule was introduced in eslint-plugin-regexp v0.3.0
55+
5356
## :mag: Implementation
5457

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

docs/rules/prefer-regexp-test.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-regexp-test"
55
description: "enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`"
6+
since: "v0.3.0"
67
---
78
# regexp/prefer-regexp-test
89

910
> enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
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
@@ -43,6 +43,10 @@ Nothing.
4343

4444
- [unicorn/prefer-regexp-test](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-regexp-test.md)
4545

46+
## :rocket: Version
47+
48+
This rule was introduced in eslint-plugin-regexp v0.3.0
49+
4650
## :mag: Implementation
4751

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

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

910
> enforce use of unicode codepoint escapes
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
@@ -34,6 +34,10 @@ var foo = /\ud83d\ude00/u
3434

3535
Nothing.
3636

37+
## :rocket: Version
38+
39+
This rule was introduced in eslint-plugin-regexp v0.3.0
40+
3741
## :mag: Implementation
3842

3943
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/prefer-unicode-codepoint-escapes.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.2.2",
3+
"version": "0.3.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)