Skip to content

Commit

Permalink
0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 6, 2021
1 parent c18a1b4 commit 75ce6a6
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 9 deletions.
6 changes: 5 additions & 1 deletion docs/rules/letter-case.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "regexp/letter-case"
description: "enforce into your favorite case"
since: "v0.3.0"
---
# regexp/letter-case

> enforce into your favorite case
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
- :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.

## :book: Rule Details
Expand Down Expand Up @@ -50,6 +50,10 @@ var foo = /\u000A/
- `caseInsensitive` ... Specifies the letter case when the `i` flag is present.
- `unicodeEscape` ... Specifies the letter case when the unicode escapes.

## :rocket: Version

This rule was introduced in eslint-plugin-regexp v0.3.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/letter-case.ts)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/no-useless-character-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "regexp/no-useless-character-class"
description: "disallow character class with one character"
since: "v0.3.0"
---
# regexp/no-useless-character-class

> disallow character class with one character
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
- :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.

## :book: Rule Details
Expand Down Expand Up @@ -69,6 +69,10 @@ var foo = /a[b]c/;
[no-empty-character-class]: https://eslint.org/docs/rules/no-empty-character-class
[no-div-regex]: https://eslint.org/docs/rules/no-div-regex

## :rocket: Version

This rule was introduced in eslint-plugin-regexp v0.3.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-useless-character-class.ts)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/no-useless-non-greedy.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "regexp/no-useless-non-greedy"
description: "disallow unnecessary quantifier non-greedy (`?`)"
since: "v0.3.0"
---
# regexp/no-useless-non-greedy

> disallow unnecessary quantifier non-greedy (`?`)
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
- :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.

## :book: Rule Details
Expand Down Expand Up @@ -38,6 +38,10 @@ var foo = /a{2,2}?/;

Nothing.

## :rocket: Version

This rule was introduced in eslint-plugin-regexp v0.3.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-useless-non-greedy.ts)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/no-useless-range.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "regexp/no-useless-range"
description: "disallow unnecessary range of characters by using a hyphen"
since: "v0.3.0"
---
# regexp/no-useless-range

> disallow unnecessary range of characters by using a hyphen
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
- :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.

## :book: Rule Details
Expand All @@ -35,6 +35,10 @@ var foo = /[a-b]/

Nothing.

## :rocket: Version

This rule was introduced in eslint-plugin-regexp v0.3.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-useless-range.ts)
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/prefer-regexp-exec.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "regexp/prefer-regexp-exec"
description: "enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided"
since: "v0.3.0"
---
# regexp/prefer-regexp-exec

> enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>

`RegExp#exec` is faster than `String#match` and both work the same when not using the `/g` flag.

## :book: Rule Details
Expand Down Expand Up @@ -50,6 +49,10 @@ Nothing.

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

## :rocket: Version

This rule was introduced in eslint-plugin-regexp v0.3.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/prefer-regexp-exec.ts)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/prefer-regexp-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "regexp/prefer-regexp-test"
description: "enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`"
since: "v0.3.0"
---
# regexp/prefer-regexp-test

> enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
- :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.

## :book: Rule Details
Expand Down Expand Up @@ -43,6 +43,10 @@ Nothing.

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

## :rocket: Version

This rule was introduced in eslint-plugin-regexp v0.3.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/prefer-regexp-test.ts)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/prefer-unicode-codepoint-escapes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "regexp/prefer-unicode-codepoint-escapes"
description: "enforce use of unicode codepoint escapes"
since: "v0.3.0"
---
# regexp/prefer-unicode-codepoint-escapes

> enforce use of unicode codepoint escapes
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
- :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.

## :book: Rule Details
Expand All @@ -34,6 +34,10 @@ var foo = /\ud83d\ude00/u

Nothing.

## :rocket: Version

This rule was introduced in eslint-plugin-regexp v0.3.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/prefer-unicode-codepoint-escapes.ts)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-regexp",
"version": "0.2.2",
"version": "0.3.0",
"description": "ESLint plugin for finding RegExp mistakes and RegExp style guide violations.",
"main": "dist/index.js",
"files": [
Expand Down

0 comments on commit 75ce6a6

Please sign in to comment.