prettier + eslint
- 重置 vscode 的配置,采用.prettierrc 文件
- 编写 eslint 规则和.eslintignore
- 添加 package.json 的 lint 相关的命令
- 增加 prettier-eslint-cli,配置 format 命令
- 集成所有命令
prettier-eslin 优先读取 eslint 的配置,如果被禁用那么去读 .prettierrc
demo
1 | // .prettierrc |
1 | "scripts": { |
github地址 -> https://github.com/FoxDaxian
1 | // .prettierrc |
1 | "scripts": { |