Skip to content

Commit ac3912c

Browse files
Build(deps-dev): Bump eslint-plugin-unicorn from 35.0.0 to 36.0.0 (#11504)
1 parent bf5a027 commit ac3912c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"eslint-plugin-prettier-internal-rules": "2.0.1",
117117
"eslint-plugin-react": "7.25.1",
118118
"eslint-plugin-regexp": "1.1.0",
119-
"eslint-plugin-unicorn": "35.0.0",
119+
"eslint-plugin-unicorn": "36.0.0",
120120
"esm-utils": "2.0.0",
121121
"execa": "5.1.1",
122122
"jest": "27.1.1",

src/language-js/print/literal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function printBigInt(raw) {
5353
}
5454

5555
function printRegex({ pattern, flags }) {
56-
flags = flags.split("").sort().join("");
56+
flags = [...flags].sort().join("");
5757
return `/${pattern}/${flags}`;
5858
}
5959

src/main/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ function coreFormat(originalText, opts, addAlignmentSize = 0) {
109109
// diff old and new cursor node texts, with a special cursor
110110
// symbol inserted to find out where it moves to
111111

112-
const oldCursorNodeCharArray = oldCursorNodeText.split("");
112+
const oldCursorNodeCharArray = [...oldCursorNodeText];
113113
oldCursorNodeCharArray.splice(
114114
cursorOffsetRelativeToOldCursorNode,
115115
0,
116116
CURSOR
117117
);
118118

119-
const newCursorNodeCharArray = newCursorNodeText.split("");
119+
const newCursorNodeCharArray = [...newCursorNodeText];
120120

121121
const cursorNodeDiff = diff.diffArrays(
122122
oldCursorNodeCharArray,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3063,10 +3063,10 @@ [email protected]:
30633063
regexpp "^3.2.0"
30643064
scslre "^0.1.6"
30653065

3066-
eslint-plugin-unicorn@35.0.0:
3067-
version "35.0.0"
3068-
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-35.0.0.tgz#40797793d4f645bafaaa7a1396b8f4ca7b2a7dbd"
3069-
integrity sha512-FHsaO68tDPQILfs/mGF8eSISJp8RswR4FpUuBDnueK2wyEHC6zmsc9WxjYyldXoIsBuVmru6jQyFCbCWPoW/KQ==
3066+
eslint-plugin-unicorn@36.0.0:
3067+
version "36.0.0"
3068+
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-36.0.0.tgz#db50e1426839e401d33c5a279f49d4a5bbb640d8"
3069+
integrity sha512-xxN2vSctGWnDW6aLElm/LKIwcrmk6mdiEcW55Uv5krcrVcIFSWMmEgc/hwpemYfZacKZ5npFERGNz4aThsp1AA==
30703070
dependencies:
30713071
"@babel/helper-validator-identifier" "^7.14.9"
30723072
ci-info "^3.2.0"

0 commit comments

Comments
 (0)