Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build(deps-dev): Bump eslint-plugin-unicorn from 35.0.0 to 36.0.0 #11504

Merged
merged 2 commits into from Sep 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -116,7 +116,7 @@
"eslint-plugin-prettier-internal-rules": "2.0.1",
"eslint-plugin-react": "7.25.1",
"eslint-plugin-regexp": "1.1.0",
"eslint-plugin-unicorn": "35.0.0",
"eslint-plugin-unicorn": "36.0.0",
"esm-utils": "2.0.0",
"execa": "5.1.1",
"jest": "27.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/language-js/print/literal.js
Expand Up @@ -53,7 +53,7 @@ function printBigInt(raw) {
}

function printRegex({ pattern, flags }) {
flags = flags.split("").sort().join("");
flags = [...flags].sort().join("");
return `/${pattern}/${flags}`;
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/core.js
Expand Up @@ -109,14 +109,14 @@ function coreFormat(originalText, opts, addAlignmentSize = 0) {
// diff old and new cursor node texts, with a special cursor
// symbol inserted to find out where it moves to

const oldCursorNodeCharArray = oldCursorNodeText.split("");
const oldCursorNodeCharArray = [...oldCursorNodeText];
oldCursorNodeCharArray.splice(
cursorOffsetRelativeToOldCursorNode,
0,
CURSOR
);

const newCursorNodeCharArray = newCursorNodeText.split("");
const newCursorNodeCharArray = [...newCursorNodeText];

const cursorNodeDiff = diff.diffArrays(
oldCursorNodeCharArray,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -3015,10 +3015,10 @@ eslint-plugin-regexp@1.1.0:
regexpp "^3.2.0"
scslre "^0.1.6"

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