You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why prettier doesn't support this, it seems like a good idea to me. If someone was using // csharpier-ignore at work I'd like to understand why they were and this is cleaner than adding another comment above or below it.
I would like to be able to specify a "WHY" comment after I add
//csharpier-ignore
Example (which is not possible today)
or
CSharpier v0.21 does not find comments which start with
// csharpier-ignore
but have a different ending.This is a suggestion seen in eslint, and I find it useful to keep the "why-comment" inline.
Example from eslint docs on this feature: https://eslint.org/docs/latest/use/configure/rules#configuration-comment-descriptions
/* eslint eqeqeq: "off", curly: "error" -- Here's a description about why this configuration is necessary. */
Suggested allowed (regexish) format (tests):
\/\/ csharpier-ignore($| --)
This is NOT supported by
prettier
though, so feel free to close this if you feel it is out of scope.The text was updated successfully, but these errors were encountered: