Skip to content

Commit

Permalink
✨ feat(vscode-config): 初始化VSCode配置及忽略文件
Browse files Browse the repository at this point in the history
- 添加了VSCode的settings.json文件,针对HTML和TypeScript文件设置了默认格式化工具和保存时的代码动作。
- 针对HTML和TypeScript文件的特殊规则,更新了eslint.config.js文件。
- 更新了.prettierignore文件,忽略了VSCode的配置文件和一些系统文件,以保持项目文件的整洁。
  • Loading branch information
vnobo committed Jun 25, 2024
1 parent 91f0a47 commit 3812d16
Show file tree
Hide file tree
Showing 4 changed files with 16,663 additions and 0 deletions.
42 changes: 42 additions & 0 deletions ui/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
20 changes: 20 additions & 0 deletions ui/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": false
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": false
},
"files.autoSave": "afterDelay",
"angular.forceStrictTemplates": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.inlineSuggest.enabled": true
}
Loading

0 comments on commit 3812d16

Please sign in to comment.