Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
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'],
}
可以启用提交时检测代码来规范项目内的代码风格
只会检测有改动的,之前的文件不会去检测
执行 npx init-lint
,会自动进行设置
如果要使用 prettier
自动格式化,需要在根目录创建 .prettierrc.js
文件。
该文件用于覆盖系统默认配置,具体要实现自动格式化还要安装相应插件并设置默认格式化工具
// .prettierrc.js
const prettier = require('eslint-config-db/config/prettier')
module.exports = {
...prettier,
}
如果使用 stylelint
来检查 css
样式,需要在根目录创建 .stylelintrc.js
文件。
// .stylelintrc.js
const stylelint = require('eslint-config-db/config/stylelint')
module.exports = {
...stylelint,
}
FAQs
A collection of configuration files containing eslint
The npm package eslint-config-db receives a total of 9 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.