refactor(husky): add pre-commits
This commit is contained in:
parent
c65823b03f
commit
073d316797
@ -1,6 +1,12 @@
|
|||||||
{
|
{
|
||||||
"*": ["editorconfig-checker"],
|
"*": [
|
||||||
"*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix"],
|
"editorconfig-checker"
|
||||||
"*.{json,jsonc,yml,yaml}": ["prettier --write"],
|
],
|
||||||
"*.{md,mdx}": ["prettier --write", "markdownlint --dot --fix"]
|
"*.{js,ts,tsx}": [
|
||||||
|
"prettier --write",
|
||||||
|
"eslint --fix"
|
||||||
|
],
|
||||||
|
"*.{json,jsonc,yml,yaml,md,mdx}": [
|
||||||
|
"prettier --write"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user