Skip to content

Commit

Permalink
[dev] fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Jun 3, 2024
1 parent 4bc70e4 commit 99571a0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
28 changes: 7 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier-plugin-multiline-arrays",
"version": "3.0.5",
"version": "3.0.6",
"description": "Prettier plugin to force all arrays to be multiline.",
"keywords": [
"array",
Expand Down Expand Up @@ -74,7 +74,7 @@
"ts-node": "^10.9.2",
"type-fest": "^4.18.3",
"typedoc": "^0.25.13",
"typescript": "^5.4.5",
"typescript": "^5.3.3",
"virmator": "^11.5.2"
},
"peerDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/printer/insert-new-lines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ function insertLinesIntoArray(
parentDoc[childIndex + 2] = maybeBreak.breakContents;
}
const indentIndex = childIndex + 1;
const bracketSibling = parentDoc[indentIndex] === '' ? parentDoc[indentIndex + 1] : parentDoc[indentIndex];
const bracketSibling =
parentDoc[indentIndex] === '' ? parentDoc[indentIndex + 1] : parentDoc[indentIndex];
if (debug) {
console.info({bracketSibling});
}
Expand Down

0 comments on commit 99571a0

Please sign in to comment.