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 2
2
3
3
🔧 一个 Vue 的 ESLint 配置,使用 Prettier 格式化代码。
4
4
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 ) 。
6
6
7
7
## 使用
8
8
9
9
1.安装依赖
10
10
11
11
``` sh
12
- pnpm add -D @longwoo /eslint-config-vue
12
+ pnpm add -D @loongwoo /eslint-config-vue
13
13
14
14
# or
15
- yarn add -D @longwoo /eslint-config-vue
15
+ bun add -D @loongwoo /eslint-config-vue
16
16
17
17
# 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
19
22
```
20
23
21
24
2.配置 ESLint
22
25
23
26
``` json
24
27
{
25
- "extends" : " @longwoo /vue"
28
+ "extends" : " @loongwoo /vue"
26
29
}
27
30
```
28
31
Original file line number Diff line number Diff line change 20
20
"dependencies" : {
21
21
"@vue/eslint-config-prettier" : " ^9.0.0" ,
22
22
"@vue/eslint-config-typescript" : " ^13.0.0" ,
23
- "eslint-plugin-vue" : " ^9.25 .0"
23
+ "eslint-plugin-vue" : " ^9.27 .0"
24
24
},
25
25
"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 "
29
29
},
30
30
"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 "
34
34
}
35
35
}
You can’t perform that action at this time.
0 commit comments