Add a way to indicate that a type/document has been generated #7589
Closed
baywet
started this conversation in
Community Feedback
Replies: 2 comments 2 replies
-
I like to wrap generated files with: /* eslint-disable */
/* generated by ... */
...
/* eslint-enable */ |
Beta Was this translation helpful? Give feedback.
1 reply
-
Bill has answered your question - though for future reference - as per our contributing guide we don't use discussions as a support forum. Please see our contributing guide for better alternatives. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone 👋
I'm working on kiota an OpenAPI based and open-source client code generator for REST APIs.
As we're generating code for users, we don't want that code to trigger linting rules. We of course strive to produce the cleanest code as possible, but even then, linting configuration from one project to another might differ.
CSharp has the auto-generated doc comment and Java has the generated annotation both effectively disable any warn/error/info behavior from the target files/types allowing the developer to focus on their code.
We prefer that approach over project configuration as it reduces setup instructions and gets people to calling their API faster.
With that context in mind: is there an equivalent with eslint/ts-parser? If so, would you mind pointing me to it (couldn't find it during my searches), if not, is this something that should be considered by the broader community here? (or should I post that in eslint directly)
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions