refactor(husky): add pre-commits

This commit is contained in:
2022-08-13 19:15:49 +01:00
parent b702811afc
commit c65823b03f
4 changed files with 238 additions and 8 deletions

6
.lintstagedrc Normal file
View File

@ -0,0 +1,6 @@
{
"*": ["editorconfig-checker"],
"*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix"],
"*.{json,jsonc,yml,yaml}": ["prettier --write"],
"*.{md,mdx}": ["prettier --write", "markdownlint --dot --fix"]
}