lint-staged: Reintroduce Prettier for md files (#5382)

This commit is contained in:
Pascal Jufer
2021-04-30 14:44:47 +02:00
committed by GitHub
parent 26ca4a7717
commit 1a39b4bc6d
2 changed files with 3 additions and 1 deletions

View File

@@ -118,6 +118,7 @@ export default defineComponent({
return i;
}
}
return null;
});
/**

View File

@@ -64,7 +64,8 @@
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,ts,vue,md}": "eslint --fix",
"*.{js,ts,vue}": "eslint --fix",
"*.md": "prettier --write",
"*.{css,scss,vue}": "stylelint --fix"
}
}