Skip to content

Commit

Permalink
Build(deps-dev): Bump eslint-plugin-unicorn from 35.0.0 to 36.0.0 (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Sep 12, 2021
1 parent bf5a027 commit ac3912c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
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.1",
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 @@ -3063,10 +3063,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

0 comments on commit ac3912c

Please sign in to comment.