Skip to content

Commit

Permalink
chore: 调整 lint-staged 配置
Browse files Browse the repository at this point in the history
处理 md 文件 prettier 失效问题
  • Loading branch information
xyy94813 committed Sep 19, 2023
1 parent 258cc12 commit ccb3e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
'*.{md,mdx,xml,html,json,yaml,graphql}': 'prettier --write --ignore-unknown',
'*.{md,mdx,xml,html,json,yaml,graphql}': 'prettier --write',
'*.{ts,tsx,js,jsx}': [
'npx eslint -c .eslintrc.js "src/**/*.{ts,tsx,js,jsx}" --fix',
'git add',
Expand Down

0 comments on commit ccb3e7a

Please sign in to comment.