-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add fixer for requireValidFileAnnotation when always #332
feat: add fixer for requireValidFileAnnotation when always #332
Conversation
If file starts with |
Thank you for chiming in and sorry for the slow follow-up. Would you happen to have an example of an eslint plugin that does this? I think that another way to prevent autofixing of files would be to add a // @noflow file declaration to the top of the file? Happy to add some documentation if that would be sufficient? |
Sounds reasonable. |
@gajus - Added a note in the README about autofixing, and how to avoid autofixing this rule per-file. Is there anything else you were looking for here? |
Thank you |
🎉 This PR is included in version 2.48.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
If folks add 'always' to their eslint config we can infer that they generally want flow coverage in their codebases. As such, we should be able to autofix files by adding the annotation to make their lives easier.