
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
eslint-plugin-userscripts
Advanced tools
eslint-plugin-userscripts
Implements rules for userscripts in eslint
.
You'll first need to install ESLint:
npm install eslint --save-dev
Next, install eslint-plugin-userscripts
:
npm install eslint-plugin-userscripts --save-dev
Add userscripts
to the plugins section of your .eslintrc
configuration file:
{
"extends": ["plugin:userscripts/recommended"]
}
Rule | Description | Recommended |
---|---|---|
filename-user | Ensures userscripts end with .user.js | ✅ |
no-invalid-grant | Ensures the argument passed to @grant is valid | ✅ |
no-invalid-metadata | Ensures userscripts have valid metadata | ✅ |
require-name | Ensures userscripts have a name | ✅ |
require-description | Ensures userscripts have a description | ✅ |
require-version | Ensures userscripts have a valid version | ✅ |
use-homepage-and-url | Ensures that for each homepage attribute, homepageURL is also used | ✅ |
use-download-and-update-url | Ensures that for each downloadURL there is a updateURL | ✅ |
align-attributes | Ensures that attributes are spaced out and aligned | ✅ |
require-attribute-space-prefix | Ensure that attributes are prefixed by one space | ✅ |
metadata-spacing | Ensures there is a newline between the metadata and the code | ✅ |
no-invalid-headers | Ensures userscripts have valid headers | ✅ |
compat-grant | Ensures your @grant permissions are supported | |
compat-headers | Ensures your headers are supported | |
better-use-match | Prefers @match over @include | ✅ |
FAQs
Implements rules for userscripts metadata in eslint
The npm package eslint-plugin-userscripts receives a total of 2,434 weekly downloads. As such, eslint-plugin-userscripts popularity was classified as popular.
We found that eslint-plugin-userscripts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.