Skip to content

Commit

Permalink
fix: Fix missing errors from oxlint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Aug 30, 2024
1 parent d7d4877 commit e3ad041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tools/oxlint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const parseOuptut: OutputParser = ({ stdout, stderr }) => {
if (stdout.trim()) {
return stdout.split(/\r?\n/).reduce<Problem[]>((acc, line) => {
const groups =
/^(?<file>.+?):(?<line>[0-9]+):(?<column>[0-9]):\s?(?<message>.*?)\s?\[(?<kind>Warning|Error)\/?(?<rule>.*?)\]\s?$/.exec(
/^(?<file>.+?):(?<line>[0-9]+):(?<column>[0-9]+):\s?(?<message>.*?)\s?\[(?<kind>Warning|Error)\/?(?<rule>.*?)\]\s?$/.exec(
line,
)?.groups;
if (groups) {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/prettier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const parseOuptut: OutputParser = ({ stdout, stderr }) => {
if (stderr.trim()) {
return stderr.split(/\r?\n/).reduce<Problem[]>((acc, line) => {
const groups =
/^\[(?<kind>.+?)\]\s?(?<file>.+?):\s?(?<message>.*?)\s?\((?<line>[0-9]+):(?<column>[0-9])\)$/.exec(
/^\[(?<kind>.+?)\]\s?(?<file>.+?):\s?(?<message>.*?)\s?\((?<line>[0-9]+):(?<column>[0-9]+)\)$/.exec(
line,
)?.groups;
if (groups) {
Expand Down

0 comments on commit e3ad041

Please sign in to comment.