Install lint-staged

This commit is contained in:
Thomas A. Christensen II 2022-06-28 21:43:11 -05:00
parent 80f7733550
commit bdd318156d
Signed by: millironx
GPG key ID: 139C07724802BC5D
4 changed files with 1614 additions and 0 deletions

1
.husky/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
_

4
.husky/pre-commit Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged

1601
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -23,6 +23,14 @@
"postcss-purgecss": "^1.0.0"
},
"devDependencies": {
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1"
},
"lint-staged": {
"*.{js,css,md}": "prettier --write"
},
"scripts": {
"prepare": "husky install"
}
}