Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@metamask/eslint-config-typescript
Advanced tools
@metamask/eslint-config-typescript
MetaMask's TypeScript ESLint configuration.
yarn add --dev \
@metamask/eslint-config@^9.0.0 \
@metamask/eslint-config-typescript@^9.0.1 \
@typescript-eslint/eslint-plugin@^4.20.0 \
@typescript-eslint/parser@^4.20.0 \
eslint@^7.23.0 \
eslint-config-prettier@^8.1.0 \
eslint-plugin-import@^2.22.1 \
eslint-plugin-jsdoc@^36.1.0 \
eslint-plugin-prettier@^3.3.1 \
prettier@^2.2.1
The order in which you extend ESLint rules matters.
The @metamask/*
eslint configs should be added to the extends
array last,
with @metamask/eslint-config
first, and @metamask/eslint-config-*
in any
order thereafter.
module.exports = {
root: true,
extends: [
// This should be added last unless you know what you're doing.
'@metamask/eslint-config',
],
overrides: [
// The TypeScript config disables certain rules that you want to keep for
// non-TypeScript files, so it should be added in an override.
{
files: ['*.ts'],
extends: ['@metamask/eslint-config-typescript'],
},
],
};
FAQs
Shareable MetaMask ESLint config for TypeScript.
The npm package @metamask/eslint-config-typescript receives a total of 7,701 weekly downloads. As such, @metamask/eslint-config-typescript popularity was classified as popular.
We found that @metamask/eslint-config-typescript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.