Skip to content

Commit

Permalink
fix: use xo's compact reporter to make error prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gamemaker1 committed Dec 20, 2021
1 parent d84efcc commit 3bd159a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/xo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ function preinit()
-- It should run on Javascript and Typescript files
"[type|java]script",
-- Run the XO command
"npx", {"xo", "--reporter", "unix", "--fix", "%f"},
"npx", {"xo", "--reporter", "compact", "--fix", "%f"},
-- The format in which XO reports its errors
-- - %f is the file name
-- - %l is the line number
-- - %c is the column
-- - %m is the error message
"%f:%l:%c: %m",
"%f: line %l, col %c, %m",
-- Run on all operating systems
{}, false,
-- The file type param is a regex, interpret it as such
Expand Down

0 comments on commit 3bd159a

Please sign in to comment.