jerone / UserScripts

🐵 My UserScripts
https://github.com/jerone/UserScripts#readme
GNU General Public License v3.0
342 stars 39 forks source link

feat: use `eslint-plugin-userscripts` #169

Closed Yash-Singh1 closed 9 months ago

Yash-Singh1 commented 10 months ago

Adds the eslint-plugin-userscripts plugin to validate userscript metadata.

Here are the changes that could result in functionality differences summarized:

The rest were autofixes for code style (e.g. spacing between metadata and code, attribute spacing, name at top, etc).

Yash-Singh1 commented 10 months ago

The only remark I have is that most of my scripts are not relevant anymore or even deprecated. I don't want to alter those anymore (e.g. userscripts.org). Maybe we can exclude those from linting. When I find the time I'll update the readme with only the relevant userscripts, so we exclude all others here.

I updated the PR now to remove all edits on Userscripts.org and add it to the ESLint ignore path.