Skip to content

Commit

Permalink
fix: commit eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
haokejie committed Jul 12, 2023
1 parent 25f37b9 commit a6c5cae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"


npm exec lint-staged
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix"
"eslint --fix --ext .js,.jsx,.ts,.tsx"
],
"*.{vue}": [
"eslint --fix --ext .vue"
]
},
"main": "dist/electron/main.js",
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { Button as AButton } from 'ant-design-vue'
test9({ name: '99' })
// 打印出process.env 中所有变量
console.log(process)
console.log(process, hhh)
const count = ref(0)
const add = () => {
test9({ name: '9aa9' })
Expand Down

0 comments on commit a6c5cae

Please sign in to comment.