
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
@aaron-zon/prettier-config
Advanced tools
Prettier config. Prettier是进行代码美化的一种方式 使用此配置包可以让代码根据编辑的规则进行美化
npm i -D prettier @aaron-zon/prettier-config
or
pnpm i -D prettier @aaron-zon/prettier-config
在项目的package.json中添加以下属性
"prettier": "@aaron-zon/prettier-config"
1.在项目package.json的scripts中写入新的命令
"lint": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\""
2.在需要进行代码美化的时机执行此命令
npm run lint
1.在项目根目录 .vscode 文件夹下创建settings.json文件
2.在settings.json中写入以下内容
{
"editor.formatOnSave": true
}
3.在编写代码后进行保存ctrl + s,代码会自动进行美化
FAQs
Prettier config. Prettier是进行代码美化的一种方式 使用此配置包可以让代码根据编辑的规则进行美化
The npm package @aaron-zon/prettier-config receives a total of 25 weekly downloads. As such, @aaron-zon/prettier-config popularity was classified as not popular.
We found that @aaron-zon/prettier-config 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
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.