-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency eslint-plugin-unicorn to v56 (#693)
- Loading branch information
1 parent
f5502bd
commit fa22b4c
Showing
12 changed files
with
153 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import eslintPluginRegexp from "eslint-plugin-regexp"; | ||
|
||
export default [ | ||
eslintPluginRegexp.configs["flat/recommended"], | ||
{ | ||
name: "@pob/eslint-config/regexp", | ||
rules: {}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line no-control-regex | ||
// eslint-disable-next-line no-control-regex, regexp/control-character-escape | ||
export const pattern1 = /\u0000/; |
2 changes: 1 addition & 1 deletion
2
@pob/eslint-config/test-lint/errors/no-empty-character-class.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line no-empty-character-class | ||
// eslint-disable-next-line no-empty-character-class, regexp/no-empty-character-class | ||
/^abc[]/.test("abcdefg"); // false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line no-invalid-regexp, prefer-regex-literals, unicorn/new-for-builtins | ||
RegExp("["); | ||
// eslint-disable-next-line no-invalid-regexp, prefer-regex-literals, regexp/no-invalid-regexp | ||
export const regexp = new RegExp("["); |
2 changes: 1 addition & 1 deletion
2
@pob/eslint-config/test-lint/errors/no-misleading-character-class.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line no-misleading-character-class | ||
// eslint-disable-next-line no-misleading-character-class, regexp/no-misleading-unicode-character | ||
/^[👶🏻]$/u.test("👶🏻"); // → false |
2 changes: 1 addition & 1 deletion
2
@pob/eslint-config/test-lint/errors/no-useless-backreference.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line no-useless-backreference | ||
// eslint-disable-next-line no-useless-backreference, regexp/no-useless-backreference | ||
export const r = /^(?:(a)|\1b)$/; // reference to (a) into another alternative |
4 changes: 4 additions & 0 deletions
4
@pob/eslint-config/test-lint/regexp/no-contradiction-with-assertion.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// eslint-disable-next-line regexp/no-contradiction-with-assertion | ||
export const foo1 = /(?=a)(\w|-)/; | ||
// eslint-disable-next-line regexp/no-contradiction-with-assertion | ||
export const foo2 = /(?=a)b*a/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.