Skip to content

Commit

Permalink
feat: 仅引入prettier
Browse files Browse the repository at this point in the history
没有实际进行格式化
  • Loading branch information
neko-para committed Apr 26, 2023
1 parent 83b373e commit 0ac390a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
packages/common/ArknightsGameData/**
*.md
*.yml
*.yaml
*.json
*.html
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"arrowParens": "avoid",
"vueIndentScriptAndStyle": false,
"printWidth": 80
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@
"packages/renderer/src/i18n"
],
"i18n-ally.keystyle": "nested",
"[javascript][typescript][vue][css][less]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"make": "electron-forge make",
"start": "electron-forge start",
"package": "electron-forge package",
"publish": "electron-forge publish"
"publish": "electron-forge publish",
"format": "npx prettier -w ."
},
"engines": {
"node": ">=18.12.0"
Expand Down

0 comments on commit 0ac390a

Please sign in to comment.