Add scripts for lint and prettier
This commit is contained in:
parent
3354eb9f9b
commit
a2ada305a7
@ -15,7 +15,11 @@
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"predeploy": "npm run build",
|
||||
"deploy": "gh-pages -d build"
|
||||
"deploy": "gh-pages -d build",
|
||||
"lint": "eslint --ext .js,.jsx .",
|
||||
"lint:fix": "eslint --ext .js,.jsx --fix .",
|
||||
"prettier": "prettier --check './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc",
|
||||
"prettier:fix": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^17.0.2",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user