chore: recover format

This commit is contained in:
DIYgod
2024-01-29 23:28:03 +08:00
parent 6333562fe5
commit 493cdc19ba
8 changed files with 229 additions and 23 deletions
+9 -2
View File
@@ -24,8 +24,8 @@
"build:maintainer": "node scripts/workflow/build-maintainer.js",
"build:radar": "node scripts/workflow/build-radar.js",
"dev": "cross-env NODE_ENV=dev tsx watch lib/index.ts",
"format": "eslint --cache --fix \"**/*.{js,yml}\" && node website/docs/.format/format.mjs && prettier \"**/*.{js,json}\" --write",
"format:check": "eslint --cache \"**/*.{js,yml}\" && prettier \"**/*.{js,json}\" --check",
"format": "eslint --cache --fix \"**/*.{ts,js,yml}\" && node website/docs/.format/format.mjs && prettier \"**/*.{ts,js,json}\" --write",
"format:check": "eslint --cache \"**/*.{ts,js,yml}\" && prettier \"**/*.{ts,js,json}\" --check",
"format:staged": "lint-staged",
"jest": "cross-env NODE_ENV=test jest --runInBand --forceExit --detectOpenHandles",
"jest:coverage": "cross-env NODE_ENV=test jest --coverage --reporters=default --reporters=jest-junit --runInBand --forceExit --detectOpenHandles",
@@ -41,6 +41,10 @@
"eslint --cache --fix",
"prettier --ignore-unknown --ignore-path ./.gitignore --write"
],
"*.ts": [
"eslint --cache --fix",
"prettier --ignore-unknown --ignore-path ./.gitignore --write"
],
"*.md?(x)": "node website/docs/.format/format.mjs --staged",
"*.yml": "eslint --cache --fix"
},
@@ -182,6 +186,8 @@
"@types/supertest": "6.0.2",
"@types/tiny-async-pool": "2.0.3",
"@types/tough-cookie": "4.0.5",
"@typescript-eslint/eslint-plugin": "6.19.1",
"@typescript-eslint/parser": "6.19.1",
"@vercel/nft": "0.26.2",
"cross-env": "7.0.3",
"eslint": "8.56.0",
@@ -216,6 +222,7 @@
"tosource": "2.0.0-alpha.3",
"ts-jest": "29.1.2",
"tsx": "4.7.0",
"typescript": "5.3.3",
"unified": "9.2.2",
"unist-util-visit": "4.1.2",
"unist-util-visit-parents": "5.1.3"