Method for adding eslint-disable to generated code
See original GitHub issueCurrent I am trying to add /* eslint-disable */
to the top of the code generated by Orval to suppress errors in my code editor. I see in the orval config you can provide a function to the header
field to modify the header of the generated file. This issue with this is that eslint isn’t picking up the disabled instruction due to other text also being in the comment. I need the other text in the comment to warn people not to modify the generated file.
Does a feature already exist to do this or to directly modify the generated code prior to it being saved to the file?
Thanks for this awesome project!
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Ignoring Code - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Turning off eslint rule for a specific file - Stack Overflow
1) Disabling "All rules" · You can go with 1.2 and add /* eslint-disable */ on top of the files, one by one....
Read more >How to disable ESLint for some lines, files or folders
To turn off ESLint in the whole file, you can add /* eslint-disable */ in the first line of that file. Alternatively, you...
Read more >Unable to use with create-react-app #1786 - GitHub
Describe the bug. I generated a react app with create-react-app 3.0. This has a predefined ESLint config which uses the 'import/first' rule.
Read more >eslint-disable-next-line generated in wrong positions
1.In a JS project with eslint enabled and configured, write somethingThatDoesntExists() that violates no-undef rule · 2. alt+enter and choose "Disable rule for ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed with
6.7.0
Will be in the next release