
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
eslint-config-maasglobal
Advanced tools
DEPRECATED
This eslint config was used for old JavaScript based MaaS Global projects. The focus of development has since moved to TypeScript. The config available in this package has been deprecated as a result. Please migrate to eslint-config-maasglobal-ts that is used for all new MaaS Global projects.
In package.json
reference eslint-config-maasglobal
, eslint-plugin-import
, eslint-plugin-jsdoc
as one of devDependencies
, and configure eslint as:
{
"eslintConfig": {
"extends": "maasglobal"
}
}
Note that provided eslint setup doesn't handle eventual code style formatting. This is supposed to be solely guarded by Prettier
Within new projects, ensure prettier
as one of devDependencies
and setup .prettierrc.js
as:
'use strict';
module.exports = require('eslint-config-maasglobal/.prettierrc');
It's highly recommended that for consistent whitespace formatting, an IDE is configured to also apply Prettier formatting on each file save.
For proper CI integration it's recommended that all MaaS projects have following scripts preconfgured:
{
"lint": "eslint --ignore-path=.gitignore .",
"lint-updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'",
"prettier-check-updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
"prettify": "prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'",
"prettify-updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write"
}
Note: Scripts require additional git-list-updated
dependency to be installed, reference it in devDependencies
In Travis CI configuration, ensure that following validation is made on each PR build (but not on branch deployment):
npm run lint-updated && npm run prettier-check-updated
FAQs
ESLint config for MaaS projects
We found that eslint-config-maasglobal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.