Skip to content

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

Open
@Emasoft

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions