prettier on on precommit enabled
This commit is contained in:
parent
f64bcc08f0
commit
0eb1430174
|
@ -1,6 +1,3 @@
|
|||
{
|
||||
"*.{js,ts,tsx,json,scss,css,html}": "prettier --write",
|
||||
"package.json": "sort-package-json",
|
||||
"*.{scss,css}": "stylelint",
|
||||
"*.{ts,tsx,js}": "eslint --fix"
|
||||
"*.{js,ts,tsx,json,scss,css,html}": "prettier --write"
|
||||
}
|
||||
|
|
6
.lintstagedrc.bak
Normal file
6
.lintstagedrc.bak
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"*.{js,ts,tsx,json,scss,css,html}": "prettier --write",
|
||||
"package.json": "sort-package-json",
|
||||
"*.{scss,css}": "stylelint",
|
||||
"*.{ts,tsx,js}": "eslint --fix"
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
"lint:code:fix": "eslint . --fix",
|
||||
"lint:styles": "stylelint **/*.{scss,css}",
|
||||
"lint:styles:fix": "stylelint **/*.{scss,css} --fix",
|
||||
"pre-commit": "",
|
||||
"pre-commit": "lint-staged",
|
||||
"pre-push": "",
|
||||
"pre-commit-old": "lint-staged",
|
||||
"pre-push-old": "npm run typecheck",
|
||||
|
|
Loading…
Reference in New Issue
Block a user