-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use eslint-plugin-userscripts & sort headers #126
Comments
Agreed, @double-beep. I've been trying to get it feature-complete first, and since that is mostly out of the way, it's time to look into header linting. That said, most of the rules should be already baked in (if anything supported does not pass, do let me know, I'll review and fix):
As for sorting - I am already looking into it: currently, the headers are sorted alphabetically, but I know that |
@Oaphi how should we order the headers? I suggest the following (by default):
It'd be nice if the user was able to customise the order as well (though I suppose the implementation would be complicated)! What do you think? |
@double-beep to avoid making a breaking change, I think the default behavior should be left as is (alphabetical order + |
Since 4.15, Tampermonkey uses eslint-plugin-userscripts to validate userscript headers. The docs are here.
It'd be nice if this package used the plugin to lint headers before actually prepending them to the file.
The text was updated successfully, but these errors were encountered: