File tree Expand file tree Collapse file tree 3 files changed +781
-573
lines changed Expand file tree Collapse file tree 3 files changed +781
-573
lines changed Original file line number Diff line number Diff line change 22
33🔧 一个 Vue 的 ESLint 配置,使用 Prettier 格式化代码。
44
5- > 如果只需要对 TypeScript 的代码进行格式化,可以使用 [ @longwoo /eslint-config-typescript-prettier ] ( https://github.com/long-woo/eslint-config-typescript-prettier ) 。
5+ > 如果只需要对 TypeScript 的代码进行格式化,可以使用 [ @loongwoo /eslint-config-typescript-prettier ] ( https://github.com/long-woo/eslint-config-typescript-prettier ) 。
66
77## 使用
88
991.安装依赖
1010
1111``` sh
12- pnpm add -D @longwoo /eslint-config-vue
12+ pnpm add -D @loongwoo /eslint-config-vue
1313
1414# or
15- yarn add -D @longwoo /eslint-config-vue
15+ bun add -D @loongwoo /eslint-config-vue
1616
1717# or
18- npm install --save-dev @longwoo/eslint-config-vue
18+ yarn add -D @loongwoo/eslint-config-vue
19+
20+ # or
21+ npm install --save-dev @loongwoo/eslint-config-vue
1922```
2023
21242.配置 ESLint
2225
2326``` json
2427{
25- "extends" : " @longwoo /vue"
28+ "extends" : " @loongwoo /vue"
2629}
2730```
2831
Original file line number Diff line number Diff line change 2020 "dependencies" : {
2121 "@vue/eslint-config-prettier" : " ^9.0.0" ,
2222 "@vue/eslint-config-typescript" : " ^13.0.0" ,
23- "eslint-plugin-vue" : " ^9.25 .0"
23+ "eslint-plugin-vue" : " ^9.27 .0"
2424 },
2525 "devDependencies" : {
26- "eslint" : " ^9.0 .0" ,
27- "prettier" : " ^3.2.5 " ,
28- "typescript" : " ^5.4.5 "
26+ "eslint" : " ^9.6 .0" ,
27+ "prettier" : " ^3.3.2 " ,
28+ "typescript" : " ^5.5.3 "
2929 },
3030 "peerDependencies" : {
31- "eslint" : " ^9.0 .0" ,
32- "prettier" : " ^3.2.5 " ,
33- "typescript" : " ^5.4.5 "
31+ "eslint" : " ^9.6 .0" ,
32+ "prettier" : " ^3.3.1 " ,
33+ "typescript" : " ^5.5.3 "
3434 }
3535}
You can’t perform that action at this time.
0 commit comments