Skip to content
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

[Feature Req] Please add a javascript linter to the userscripts editor to catch errors before saving a modified script #102

Open
Emasoft opened this issue Aug 30, 2024 · 0 comments

Comments

@Emasoft
Copy link

Emasoft commented Aug 30, 2024

Currently if we make some changes to the userscripts in the Stay editor we can only wait to go to the browser and see that Stay crashed to know that we made a typo or a syntax error. This back and forth from Stay and the browser is very slow and prone to errors. Please add a javascript linter to the userscripts editor to catch errors before saving a modified script. In this way we can be sure that a userscript is valid before saving it and overwriting the previous version.
There are pluggable Javascript linters that support the GM syntax/environment. For example for ESLint you can use this: https://github.com/A-23187/eslint-config-greasemonkey

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant