Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
快速生成常用 .eslintrc.json 配置文件,同时安装相应的 npm 依赖包。
npm i -g eslint-g
$ cd my-project # 进入项目根目录
$ esg # 生成默认 eslint.json 配置,同时安装依赖包
同时可以进一步的配置
$ esg -r vue -i yarn # 使用 vue 的 eslint.json 配置,使用 yarn 安装依赖
根据项目环境不同来生成不同的 eslintrc 规则文件,rule 有以下可选项:
node
或 n
: 生成 nodejs 的 eslint 配置 (默认使用 node 配置)vue
或 v
: 生成 vue 的 eslint 配置react
或 r
: 生成 react 的 eslint 配置browser
或 b
: 生成浏览器环境通用的 eslint 配置example:
$ esg -r react # 生成 react 的 eslint 配置
根据项目包管理工具的不同来选择不同的包管理器来安装依赖,installer 有以下可选项:
npm
: 使用 npm 安装相关依赖(默认使用 npm)yarn
: 使用 yarn 安装相关依赖cnpm
: 使用 cnpm 安装相关依赖example:
$ esg -i yarn # 使用 yarn 来安装相关依赖
禁止自动安装 npm 相关依赖包,仅仅生成 .eslintrc
规则文件。
FAQs
Generator eslint config for pspgbhu
The npm package eslint-g receives a total of 6 weekly downloads. As such, eslint-g popularity was classified as not popular.
We found that eslint-g 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.