mirror of
https://github.com/bendtherules/completion-viz.git
synced 2026-08-18 13:42:51 +00:00
package.json - Add prettier cmds to script
This commit is contained in:
+5
-2
@@ -32,7 +32,9 @@
|
|||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject",
|
||||||
"lint": "eslint --ext js,jsx,ts,tsx src"
|
"lint": "eslint --ext js,jsx,ts,tsx src",
|
||||||
|
"prettier": "prettier -l",
|
||||||
|
"prettier-fix-all": "prettier --write --ignore-unknown ./"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": "react-app"
|
"extends": "react-app"
|
||||||
@@ -44,7 +46,8 @@
|
|||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
|
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
|
||||||
"prettier -l"
|
"npm run lint",
|
||||||
|
"npm run prettier"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
|
|||||||
Reference in New Issue
Block a user