0.1.1 • Published 11 months ago

@vingogo/prettier-config v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Prettier 规范

使用

安装

Install:

pnpm add @vingogo/prettier-config prettier -D

配置

根目录下创建 .prettierrc.js

module.exports = {
  ...require('@vingogo/prettier-config'),
  // 你可以编写额外的 Prettier 配置来覆盖原有的
  semi: false
};

添加 script

{
  "scripts": {
    "format": "prettier --write --cache --parser typescript \"**/*.[tj]s?(x)\""
  }
}
0.1.1

11 months ago

0.1.0

11 months ago