Skip to content

Commit

Permalink
perf(global): format code magic (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinHsu authored Aug 31, 2023
1 parent 0962ce5 commit 67fd433
Show file tree
Hide file tree
Showing 5 changed files with 259 additions and 78 deletions.
13 changes: 9 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"extends": [
"@antfu"
"@antfu",
"prettier"
],
"plugins": [
"simple-import-sort"
"simple-import-sort",
"prettier"
],
"rules": {
"simple-import-sort/imports": "error",
Expand All @@ -27,6 +29,9 @@
"@typescript-eslint/semi": [
"error",
"always"
]
],
"prettier/prettier": ["error", {
"htmlWhitespaceSensitivity": "ignore" // 根据显示样式决定 html 要不要折行
}]
}
}
}
38 changes: 0 additions & 38 deletions .prettierrc.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "sub-store-front-end",
"private": true,
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite --host",
"dev:production": "vite --host --mode production",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview --host"
},
Expand Down Expand Up @@ -43,6 +44,7 @@
"consola": "^2.15.3",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"fast-glob": "^3.2.11",
"husky": "^8.0.1",
Expand Down
Loading

0 comments on commit 67fd433

Please sign in to comment.