Skip to content

Commit

Permalink
Bump xo from 0.56.0 to 0.57.0 (#164)
Browse files Browse the repository at this point in the history
* Bump xo from 0.56.0 to 0.57.0

Bumps [xo](https://github.com/xojs/xo) from 0.56.0 to 0.57.0.
- [Release notes](https://github.com/xojs/xo/releases)
- [Commits](xojs/xo@v0.56.0...v0.57.0)

---
updated-dependencies:
- dependency-name: xo
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix linter issues.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marc Görtz <mail@marcgoertz.de>
  • Loading branch information
dependabot[bot] and mrcgrtz committed Mar 1, 2024
1 parent 9bb042c commit f0e0688
Show file tree
Hide file tree
Showing 3 changed files with 2,367 additions and 2,227 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -41,7 +41,7 @@ function formatter(results, returnValue) {

const cleanUpAdditionals = items => items
.sort((a, b) => a.text === b.text)
.filter((item, idx, array) => array.findIndex(d => d.text === item.text) === idx)
.filter((item, index, array) => array.findIndex(d => d.text === item.text) === index)
.map(item => ({
text: item.text.replaceAll(/\B"(.*?)"\B|\B'(.*?)'\B/g, (m, p1, p2) => pico.bold(p1 || p2)),
}));
Expand Down Expand Up @@ -123,7 +123,7 @@ function formatter(results, returnValue) {
maxLineWidth = Math.max(lineWidth, maxLineWidth);
maxColumnWidth = Math.max(columnWidth, maxColumnWidth);
maxMessageWidth = Math.max(messageWidth, maxMessageWidth);
showLineNumbers = showLineNumbers || x.line || x.column;
showLineNumbers ||= x.line || x.column;

lines.push({
type: 'message',
Expand Down

0 comments on commit f0e0688

Please sign in to comment.