Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-pratt committed Jan 2, 2025
1 parent f37730f commit b7b6bb1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ export default {
if (this.errors.length !== 0) {
let messages = new Set()
let result = []
this.errors.sort((a, b) => a.lineNumber - b.lineNumber)
for (const error of this.errors) {
const sortedErrors = this.errors.toSorted(
(a, b) => a.lineNumber - b.lineNumber,
)
for (const error of sortedErrors) {
let msg = `At ${error.lineNumber}: (${error.line}) ${error.message}.`
if (error.usage) {
msg += ` Usage: ${error.usage}`
Expand Down

0 comments on commit b7b6bb1

Please sign in to comment.