
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
eslint-plugin-wc
Advanced tools
ESLint plugin for Web Components.
$ npm i -D eslint eslint-plugin-wc
Add wc
to the plugins section of your .eslintrc
file:
{
"plugins": ["wc"]
}
Configure your rules like so:
{
"rules": {
"wc/rule-name": "error"
}
}
You may also extend the recommended configuration like so:
{
"extends": ["plugin:wc/recommended"],
"env": {"browser": true}
}
Or the best practice configuration which extends this to include all best practice rules:
{
"extends": ["plugin:wc/best-practice"],
"env": {"browser": true}
}
Rule | |
---|---|
wc/no-constructor-attributes | Disallows interaction with attributes in constructors |
wc/no-invalid-element-name | Disallows invalid custom element names |
wc/no-self-class | Disallows class mutations on self |
Rule | |
---|---|
wc/attach-shadow-constructor | Disallows attaching a shadow root outside the constructor |
wc/guard-super-call | Requires a guard before calling a super method inside a Custom Element Lifecycle hook |
wc/no-closed-shadow-root | Disallows closed shadow roots |
wc/no-typos | Prevents common typos |
FAQs
ESLint plugin for Web Components
The npm package eslint-plugin-wc receives a total of 38,395 weekly downloads. As such, eslint-plugin-wc popularity was classified as popular.
We found that eslint-plugin-wc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.