Skip to content

Commit a43a4a3

Browse files
committed
feat: 修改了isGitNeedPull
1 parent 4fe9a2c commit a43a4a3

File tree

10 files changed

+363
-336
lines changed

10 files changed

+363
-336
lines changed

.eslintrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
{
2+
"eslint.experimental.useFlatConfig": true,
23
"prettier.enable": true,
3-
"editor.formatOnSave": false,
4+
"editor.formatOnSave": true,
45
"editor.codeActionsOnSave": {
5-
"source.fixAll.eslint": "explicit"
6-
}
6+
"source.fixAll.eslint": "explicit",
7+
"source.organizeImports": "never"
8+
},
9+
"eslint.rules.customizations": [
10+
{ "rule": "style/*", "severity": "off" },
11+
{ "rule": "format/*", "severity": "off" },
12+
{ "rule": "*-indent", "severity": "off" },
13+
{ "rule": "*-spacing", "severity": "off" },
14+
{ "rule": "*-spaces", "severity": "off" },
15+
{ "rule": "*-order", "severity": "off" },
16+
{ "rule": "*-dangle", "severity": "off" },
17+
{ "rule": "*-newline", "severity": "off" },
18+
{ "rule": "*quotes", "severity": "off" },
19+
{ "rule": "*semi", "severity": "off" }
20+
],
21+
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "html", "markdown", "json", "jsonc", "yaml"]
722
}

eslint.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu({
4+
rules: {
5+
'no-console': 'off',
6+
},
7+
ignores: ['instructions', 'lib', 'es', 'bin'],
8+
})

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@wchenonly/git-commit-tool",
33
"type": "module",
44
"version": "1.1.33",
5-
"packageManager": "[email protected].3",
5+
"packageManager": "[email protected].5",
66
"description": "use an interactive approach to help you generate standard submission messages",
77
"author": "wChenonly",
88
"license": "MIT",
@@ -29,14 +29,14 @@
2929
"commit": "bin/index.js"
3030
},
3131
"files": [
32-
"es",
33-
"bin"
32+
"bin",
33+
"es"
3434
],
3535
"scripts": {
3636
"changelog": "conventional-changelog -p custom-config -i CHANGELOG.md -s -r 0",
3737
"dev": "nodemon -w './src/**/*.ts' -e .ts -x tsx ./build.ts",
3838
"build": "rm -rf es && tsx ./build.ts",
39-
"lint:fix": "eslint --fix ./ --ext .vue,.js,.ts,.jsx,.tsx,.json ",
39+
"lint:fix": "eslint . --fix",
4040
"format": "prettier --write .",
4141
"prepublishOnly": "npm run build",
4242
"release": "bumpp && npm publish"
@@ -50,26 +50,26 @@
5050
"cac": "^6.7.14",
5151
"execa": "^8.0.1",
5252
"kleur": "^4.1.5",
53-
"open": "^10.0.3",
53+
"open": "^10.1.0",
5454
"ora": "^8.0.1"
5555
},
5656
"devDependencies": {
57-
"@antfu/eslint-config": "^2.6.4",
58-
"@types/node": "^20.11.19",
59-
"bumpp": "^9.3.0",
57+
"@antfu/eslint-config": "^2.8.3",
58+
"@types/node": "^20.11.29",
59+
"bumpp": "^9.4.0",
6060
"conventional-changelog": "^5.1.0",
6161
"conventional-changelog-cli": "^4.1.0",
6262
"conventional-changelog-custom-config": "^0.3.1",
63-
"esbuild": "^0.20.1",
63+
"esbuild": "^0.20.2",
6464
"nano-staged": "^0.8.0",
65-
"nodemon": "^3.0.3",
65+
"nodemon": "^3.1.0",
6666
"prettier": "^3.2.5",
67-
"simple-git-hooks": "^2.9.0",
67+
"simple-git-hooks": "^2.11.0",
6868
"tsx": "^4.7.1",
69-
"typescript": "^5.3.3"
69+
"typescript": "^5.4.2"
7070
},
7171
"nano-staged": {
72-
"*.{ts,tsx,js,jsx,vue}": "eslint --fix",
72+
"*.{ts,tsx,js,jsx,vue}": "eslint . --fix",
7373
"*.{ts,tsx,js,jsx,vue,less,css,md}": "prettier --write"
7474
},
7575
"simple-git-hooks": {

0 commit comments

Comments
 (0)