Should be double 'm' in 'commit' + added more formats that should be processed by prettier.

This commit is contained in:
Anuar Ustayev
2020-06-17 18:35:48 +06:00
committed by GitHub
parent 4452ee01c0
commit 5e2ee1955a

View File

@@ -10,7 +10,7 @@
"test:watch": "jest --watch", "test:watch": "jest --watch",
"test:coverage": "jest --coverage", "test:coverage": "jest --coverage",
"format": "prettier --single-quote --write .", "format": "prettier --single-quote --write .",
"pre-comit": "echo 'formating your changes.....' && prettier --single-quote --write" "pre-commit": "echo 'formating your changes.....' && prettier --single-quote --write"
}, },
"dependencies": { "dependencies": {
"bytes": "^3.1.0", "bytes": "^3.1.0",
@@ -45,6 +45,6 @@
} }
}, },
"lint-staged": { "lint-staged": {
"*.{ts,css,html,tsx}": "yarn pre-comit" "*.{ts,tsx,js,jsx,css,html,md}": "yarn pre-commit"
} }
} }