How to suppress specific warnings? #1907
Unanswered
sidharthv96
asked this question in
Q&A
Replies: 1 comment
-
Hey @sidharthv96, we don't support disabling errors/warnings right now. Can you go ahead and file a feature request for this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We've been getting tons of this warnings while compiling mermaid's grammar.
The fix for the root cause is
but we only need the last defined title, which we are setting in our TS code.
So the warning is valid, but we require the behaviour with data loss. In this case, would it be possible to suppress this warning for this particular line, to avoid clogging up the console with this warning?
I have created a draft PR to fix this with code changes, but it requires more work, as the types have changed, and it adds more complexity.
If there is a way similar to
// eslint-disable-next-line rule-name
, that would be really helpful.Or is there some other way to allow the user to write multiple titles, taking only the last one, without making title into a string array in the generated type?
Beta Was this translation helpful? Give feedback.
All reactions