Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
eslint-config-db
Advanced tools
使用 npm
安装
npm install --save-dev eslint-config-db eslint-plugin-prettier eslint-plugin-import
使用 yarn
安装
yarn add -D eslint-config-db eslint-plugin-prettier eslint-plugin-import
在 eslint
配置文件中加入对应配置即可生效
{
extends: ['db'],
}
{
extends: ['db/react'],
}
如果要使用 prettier
自动格式化,需要在根目录创建 .prettierrc.js
文件。
该文件用于覆盖系统默认配置,具体要实现自动格式化还要安装相应插件并设置默认格式化工具
// .prettierrc.js
const prettier = require('eslint-config-db/config/prettier')
module.exports = {
...prettier,
}
FAQs
A collection of configuration files containing eslint
The npm package eslint-config-db receives a total of 2 weekly downloads. As such, eslint-config-db popularity was classified as not popular.
We found that eslint-config-db 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.