mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-07 08:42:49 +08:00
🐎 ci(prettier): 格式化调整
vscode 的 eslint 配置规则变更,prettier 安回来用于格式化 json & yml Signed-off-by: BTMuli <BT-Muli@outlook.com> (cherry picked from commit 6109c552818f97f9169a550a3c0d181535278be6)
This commit is contained in:
14
.prettierignore
Normal file
14
.prettierignore
Normal file
@@ -0,0 +1,14 @@
|
||||
# JetBrains IDE Setting
|
||||
.idea
|
||||
# Visual Studio Code Setting
|
||||
.vscode
|
||||
# Node Modules
|
||||
node_modules
|
||||
package-lock.json
|
||||
# Tauri build
|
||||
dist
|
||||
src-tauri/target
|
||||
# Docs
|
||||
README.md
|
||||
LICENSE
|
||||
docs
|
||||
7
.prettierrc.yml
Normal file
7
.prettierrc.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
"semi": true
|
||||
"singleQuote": false
|
||||
"printWidth": 120
|
||||
"useTabs": true
|
||||
"proseWrap": "preserve"
|
||||
"bracketSpacing": true
|
||||
"endOfLine": "auto"
|
||||
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@@ -7,10 +7,6 @@
|
||||
"typescript",
|
||||
"html",
|
||||
"vue",
|
||||
"markdown",
|
||||
"json",
|
||||
"yaml",
|
||||
"plaintext"
|
||||
],
|
||||
"stylelint.enable": true,
|
||||
"stylelint.validate": [
|
||||
|
||||
13
package-lock.json
generated
13
package-lock.json
generated
@@ -33,6 +33,7 @@
|
||||
"eslint-plugin-n": "^15.7.0",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"eslint-plugin-vue": "^9.10.0",
|
||||
"prettier": "2.8.7",
|
||||
"stylelint": "^15.4.0",
|
||||
"stylelint-config-standard-vue": "^1.0.0",
|
||||
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
|
||||
@@ -5049,6 +5050,18 @@
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "2.8.7",
|
||||
"resolved": "https://registry.npmmirror.com/prettier/-/prettier-2.8.7.tgz",
|
||||
"integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin-prettier.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
}
|
||||
},
|
||||
"node_modules/progress": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/progress/-/progress-2.0.3.tgz",
|
||||
|
||||
@@ -6,11 +6,12 @@
|
||||
"author": "BTMuli <bt-muli@outlook.com>",
|
||||
"scripts": {
|
||||
"lint": "concurrently \"npm:lint:*(!fix)\"",
|
||||
"lint:fix": "concurrently \"npm:lint:fix:*\"",
|
||||
"lint:fix": "concurrently \"npm:lint:*:fix\"",
|
||||
"lint:code": "eslint \"./src/**/*.{vue,ts,tsx,js,jsx}\"",
|
||||
"lint:code:fix": "npm run lint:code -- --fix",
|
||||
"lint:style": "stylelint \"./src/**/*.{vue,css}\"",
|
||||
"lint:style:fix": "npm run lint:style -- --fix",
|
||||
"prettier": "prettier \"**/*.{json,yml}\" --write",
|
||||
"dev": "concurrently -k \"tauri dev --exit-on-panic\" \"vue-devtools\"",
|
||||
"vite:dev": "vite dev",
|
||||
"vite:build": "vite build",
|
||||
@@ -63,6 +64,7 @@
|
||||
"eslint-plugin-n": "^15.7.0",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"eslint-plugin-vue": "^9.10.0",
|
||||
"prettier": "2.8.7",
|
||||
"stylelint": "^15.4.0",
|
||||
"stylelint-config-standard-vue": "^1.0.0",
|
||||
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
|
||||
|
||||
Reference in New Issue
Block a user