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.
eslint-config-maptalks
Advanced tools
An ESLint config for MapTalks javascript projects
npm install eslint eslint-config-maptalks --save-dev
Then add a following .eslintrc file in the repo root:
{
"extends": "maptalks"
}
npm install eslint eslint-config-maptalks -g
eslint src/**/*.js
Simple errors like indentation or quotes can be fixed automatically by
eslint src/**/*.js --fix
var eslint = require('gulp-eslint');
gulp.task('lint', function() {
gulp.src('src/**/*.js')
//the parameter of eslint is optional
//used to override the default rules
.pipe(eslint({
extends: 'maptalks',
globals: {
'Z':true
}
}))
.pipe(eslint.format())
.pipe(eslint.failAfterError())
});
"scripts": {
"lint": "eslint src/**/*.js",
"pretest": "npm run lint"
}
Run in terminal and enjoy thousands of errors:
npm run lint
Can be extended by .eslintrc file
{
extends: 'maptalks',
globals: {
'Z':true
}
}
based on mourner's eslint-config-mourner
FAQs
An ESLint config for MapTalks javascript projects
The npm package eslint-config-maptalks receives a total of 3 weekly downloads. As such, eslint-config-maptalks popularity was classified as not popular.
We found that eslint-config-maptalks demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.