mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-11-25 15:29:54 +00:00
Add scripts for lint and prettier
This commit is contained in:
1 parent
3354eb9f9b
commit
a2ada305a7
1 file changed
+5
-1
+5
-1
@@ -15,7 +15,11 @@
|
|||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"predeploy": "npm run build",
|
"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": {
|
"dependencies": {
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
|
|||||||
Reference in new issue
Block a user