You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixes duplicate entries bug that happens when adding custom regex rule with same name.
* Message changed from `Error: "SomeRuleName" can not be used as eslint-plugin-regex rule name` to `Error: "SomeRuleName" already defined as eslint-plugin-regex rule name`.
* Updates documentation.
* Changes background color to white for images.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
# ESLint Plugin Regex Change Log
2
2
3
+
## 1.9.1 - July 2022
4
+
5
+
* Fixes duplicate entries bug that happens when adding custom regex rule with same name.
6
+
* Message changed from `Error: "SomeRuleName" can not be used as eslint-plugin-regex rule name` to `Error: "SomeRuleName" already defined as eslint-plugin-regex rule name`.
7
+
* Updates documentation.
8
+
* Changes background color to white for images.
9
+
3
10
## 1.9.0 - April 2022
4
11
5
12
* Closes #15, Allowing mixing different error level.
Copy file name to clipboardExpand all lines: README.md
+35-20Lines changed: 35 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ __________________
28
28
},
29
29
"devDependencies": {
30
30
"eslint": ">=4.0.0",
31
-
"eslint-plugin-regex": "1.9.0",
31
+
"eslint-plugin-regex": "1.9.1",
32
32
```
33
33
34
34
2. Configure eslint:
@@ -795,7 +795,7 @@ Creating and Using a Custom Set of regex rules **requires using `js` files**.
795
795
796
796
###### Named Regex Rules approach
797
797
798
-
Rule name can be anything that includes `invalid`, `disuse`, `avoid`, `required` or `use`, ignoring letter case, and with the restrictions of predefined names (`invalid`, `disuse`, `avoid`, `invalid-warn`, `invalid-error`, `another-invalid`, `other-invalid`, `required`, `use`, `required-warn`, `required-error`, `another-required` and `other-required`), this will allow to mix different error levels or create custom regex rules package.
798
+
A regex rule can be named with a custom name. The Rule name can be anything that **includes `invalid`, `disuse`, `avoid`, `required` or `use`**, ignoring letter case, and with the restrictions of predefined names (`invalid`, `disuse`, `avoid`, `invalid-warn`, `invalid-error`, `another-invalid`, `other-invalid`, `required`, `use`, `required-warn`, `required-error`, `another-required` and `other-required`).
799
799
800
800
*`regex/*invalid*`, `regex/*disuse*` or `regex/*avoid*` for invalid patterns.
801
801
*`regex/*required*` or `regex/*use*` for required patterns.
0 commit comments