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.
@withdouble/eslint-config
Advanced tools
npm i -D @withdouble/eslint-config
Add this to your .eslintrc file:
{
"extends": "@withdouble"
}
or in your package.json
:
"eslintConfig": {
"extends": "@withdouble"
}
Follows JavaScript Standard Style and Flowtype plugin recommended rules, with additions/exceptions:
Else/Catch/Finally statements must be on their own line after the preceding closing brace.
eslint: brace-style
// ✓ ok
if (condition) {
// ...
}
else {
// ...
}
// ✗ avoid
if (condition) {
// ...
} else {
// ...
}
Trailing commas on each line if multiline
eslint: comma-dangle
const him = {
name: 'John',
message: 'hello' // ✗ avoid
}
const her = {
name: 'Jane',
message: 'hi', // ✓ ok
}
No var
, use const
or let
instead
eslint: no-var
// ✗ avoid
var him = 'John'
// ✓ ok
const her = 'Jane'
let it = 'Rex'
FAQs
Double’s JavaScript Style
The npm package @withdouble/eslint-config receives a total of 82 weekly downloads. As such, @withdouble/eslint-config popularity was classified as not popular.
We found that @withdouble/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.