We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--debug
1 parent 30f1b90 commit 6913aa1Copy full SHA for 6913aa1
.changeset/poor-lions-buy.md
@@ -0,0 +1,5 @@
1
+---
2
+"eslint-mdx": patch
3
4
+
5
+chore: log error details on `--debug` flag enabled
packages/eslint-mdx/src/parser.ts
@@ -62,6 +62,10 @@ export class Parser {
62
ignoreRemarkConfig,
63
})
64
} catch (err: unknown) {
65
+ /* istanbul ignore if */
66
+ if (process.argv.includes('--debug')) {
67
+ console.error(err)
68
+ }
69
const error = err as VFileMessage
70
throw Object.assign(
71
new SyntaxError(error.message, {
0 commit comments