Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@kablamo/eslint-plugin
Advanced tools
yarn add -D @kablamo/eslint-plugin
Add the following to your .eslintrc.js
.
module.exports = {
plugins: ["@kablamo"],
extends: ["plugin:@kablamo/recommended"],
};
test-id-prefix-match-path
This rule fixes the first argument of createTestIds(prefix, [ ...ids])
to be a prefix derived from the files
current directory. This ensures consistent unique prefixes per component.
You can still suffix variables to the end of your test id for example data-testid={\
${testId.myId}-${uuid}`}`.
test-id-consistent-naming
This rule ensures common misspellings always get fixed to the kebab-case data-testid
by default.
This can be configured to data-test-id
.
module.exports = {
plugins: ["@kablamo"],
extends: ["plugin:@kablamo/recommended"],
rules: {
"@kablamo/test-id-consistent-naming": ["error", "data-test-id"],
},
};
This plugin contains a reccomended elsint ruleset to enable the included rules.
Run yarn test
from the root of the project.
FAQs
`yarn add -D @kablamo/eslint-plugin`
The npm package @kablamo/eslint-plugin receives a total of 286 weekly downloads. As such, @kablamo/eslint-plugin popularity was classified as not popular.
We found that @kablamo/eslint-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.