
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
@eslint-share/eslint-config-prettier
Advanced tools
不依赖 Typescript 和 React 的项目可使用此配置。主要做代码格式化的校验。
EslintPrettier@babel/eslint-parsernpm i @eslint-share/eslint-config-prettier or
yarn add @eslint-share/eslint-config-prettier使用 yarn 如果出现错误的话,需要补充安装
yarn add eslint-plugin-prettier@latest -D
在项目根目录新建 eslint 配置文件:.eslintrc.js 中加入:
module.exports = {
"extends": ["@eslint-share/eslint-config-prettier"]
}
如果需要修改 Prettier 规则,需要在 .eslintrc.js 中新增字段 rules 字段:
module.exports = {
...
rules: {
"prettier/prettier": [
"error",
{
printWidth: 100,
trailingComma: "none"
}
]
}
}
FAQs
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
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.