Skip to content

Commit

Permalink
fixbug: 修改问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Jun 6, 2022
1 parent 79d931d commit e6956c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
7 changes: 0 additions & 7 deletions .husky/lintstagedrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# npm run lint:eslint
# npm run lint:prettier
# npm run lint:stylelint
npm run lint:lint-staged
npm run lint:staged

npm run lint:pretty
# git add .
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"lint:eslint": "eslint \"{src,mock}/**/*.{vue,ts,js,tsx,jsx}\" --fix",
"lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,json,css,scss,vue,ts,tsx,jsx,html,md}\"",
"lint:stylelint": "stylelint --syntax scss \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
"lint:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js",
"lint:pretty": "pretty-quick --staged",
"lint:staged": "lint-staged",
"commit": "git-cz",
Expand Down Expand Up @@ -109,7 +108,7 @@
}
},
"lint-staged": {
"{src,mock}/**/*.{vue,ts,js,tsx,jsx}": [
"˜{src,mock,build}/**/*.{ts,js,tsx,jsx}": [
"eslint --fix",
"prettier --write"
],
Expand Down

0 comments on commit e6956c6

Please sign in to comment.