Should be double 'm' in 'commit' + added more formats that should be processed by prettier.
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user