Skip to content

Commit 76d0925

Browse files
authored
Update README.md
1 parent c5a1583 commit 76d0925

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,22 @@ module.exports = {
4343
...prettier,
4444
}
4545
```
46+
47+
## 搭配 VS Code 使用更佳
48+
49+
安装插件 [VS Code ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)[vscode-stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint)
50+
51+
然后在 `settings.json` 中加入以下配置:
52+
53+
```json
54+
{
55+
"editor.formatOnSave": true,
56+
"editor.codeActionsOnSave": {
57+
"source.fixAll.eslint": true,
58+
"source.fixAll.stylelint": true
59+
}
60+
}
61+
62+
```
63+
64+
完成以上步骤后,你就能够获得更好的格式提示,并在保存文件时自动格式化你的代码,享受工具给你带来的便捷吧😎~

0 commit comments

Comments
 (0)