File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/vite-plugin-checker Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
33exports[`logger > diagnosticToTerminalLog > get error 1`] = `
44" ERROR(ESLint) Unexpected var, use let or const instead.
5- FILE /Users/vite-plugin-checker/playground/eslint/src/main.ts:3:1
5+ FILE file:// /Users/vite-plugin-checker/playground/eslint/src/main.ts:3:1
66
77 1 | import { text } from './text'
88 2 |
@@ -16,7 +16,7 @@ exports[`logger > diagnosticToTerminalLog > get error 1`] = `
1616
1717exports[`logger > diagnosticToTerminalLog > get warning 1`] = `
1818" WARNING(ESLint) Unexpected var, use let or const instead.
19- FILE /Users/vite-plugin-checker/playground/eslint/src/main.ts:3:1
19+ FILE file:// /Users/vite-plugin-checker/playground/eslint/src/main.ts:3:1
2020
2121 1 | import { text } from './text'
2222 2 |
Original file line number Diff line number Diff line change @@ -104,13 +104,14 @@ export function diagnosticToTerminalLog(
104104
105105 const levelLabel = labelMap [ d . level ?? DiagnosticLevel . Error ]
106106 const fileLabel = boldBlack . bgCyanBright ( ' FILE ' ) + ' '
107+ const filePath = "file://" + d . id
107108 const position = d . loc
108109 ? chalk . yellow ( d . loc . start . line ) + ':' + chalk . yellow ( d . loc . start . column )
109110 : ''
110111
111112 return [
112113 levelLabel + ' ' + d . message ,
113- fileLabel + d . id + ':' + position + os . EOL ,
114+ fileLabel + filePath + ':' + position + os . EOL ,
114115 d . codeFrame + os . EOL ,
115116 d . conclusion ,
116117 ]
You can’t perform that action at this time.
0 commit comments