Stay icon indicating copy to clipboard operation
Stay copied to clipboard

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

Open Emasoft opened this issue 1 year ago • 0 comments

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.

Emasoft avatar Aug 30 '24 21:08 Emasoft