Skip to content

Commit

Permalink
chore: 升级工具
Browse files Browse the repository at this point in the history
  • Loading branch information
geekact committed Jul 21, 2024
1 parent 5083895 commit b1a0740
Show file tree
Hide file tree
Showing 30 changed files with 2,432 additions and 3,494 deletions.
2 changes: 0 additions & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

npx --no-install prettier --cache --check .
npx --no-install tsc
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
pnpm-lock.yaml
CHANGELOG.md
4 changes: 2 additions & 2 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ singleQuote: true
# If at least one property in an object requires quotes, quote all properties.
quoteProps: consistent
tabWidth: 2
printWidth: 80
printWidth: 90
endOfLine: lf
trailingComma: all
bracketSpacing: true
Expand All @@ -13,4 +13,4 @@ arrowParens: always
proseWrap: preserve
jsxSingleQuote: false
# Put > on the last line instead of at a new line.
jsxBracketSameLine: false
bracketSameLine: false
16 changes: 0 additions & 16 deletions .swcrc

This file was deleted.

16 changes: 12 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"typescript.preferences.quoteStyle": "single",
"typescript.suggest.autoImports": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
},
"editor.tabSize": 2,
"editor.inlayHints.fontSize": 9,
"typescript.inlayHints.parameterNames.enabled": "all",
"typescript.inlayHints.enumMemberValues.enabled": true,
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
"typescript.preferences.quoteStyle": "single",
"typescript.suggest.autoImports": true,
"cSpell.words": ["aomex", "openapi"]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 罪
Copyright (c) 2021-2024

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 0 additions & 10 deletions jest.config.js

This file was deleted.

37 changes: 16 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,21 @@
"name": "foca-axios",
"version": "3.1.0",
"repository": "git@github.com:foca-js/foca-axios.git",
"contributors": [
"罪 <fanwenhua1990@gmail.com> (https://github.com/geekact)"
],
"license": "MIT",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"sideEffects": false,
"scripts": {
"test": "jest",
"test": "vitest",
"prepublishOnly": "tsup",
"prepare": "husky install"
"prepare": "husky"
},
"volta": {
"node": "18.14.2",
"pnpm": "7.28.0"
"node": "20.15.1",
"pnpm": "9.5.0"
},
"packageManager": "pnpm@7.28.0",
"packageManager": "pnpm@9.5.0",
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -45,19 +42,17 @@
"clone": "^2.1.2"
},
"devDependencies": {
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@swc/core": "^1.3.37",
"@types/clone": "^2.1.1",
"@types/jest": "^29.4.0",
"@types/node": "^18.14.4",
"axios-mock-adapter": "^1.21.2",
"husky": "^8.0.3",
"jest": "^29.4.3",
"prettier": "^2.8.4",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@types/clone": "^2.1.4",
"@types/node": "^20.14.11",
"@vitest/coverage-v8": "^2.0.3",
"axios-mock-adapter": "^1.22.0",
"husky": "^9.1.1",
"prettier": "^3.3.3",
"sleep-promise": "^9.1.0",
"ts-jest": "^29.0.5",
"tsup": "^6.6.3",
"typescript": "^4.9.5"
"tsup": "^8.2.1",
"typescript": "^5.5.3",
"vitest": "^2.0.3"
}
}
Loading

0 comments on commit b1a0740

Please sign in to comment.