prettier on on precommit enabled

This commit is contained in:
Igor Lobanov 2022-10-25 17:44:31 +02:00
parent f64bcc08f0
commit 0eb1430174
3 changed files with 8 additions and 5 deletions

View File

@ -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
View 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"
}

View File

@ -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",