chore: add lint-staged, husky and prettier

This commit is contained in:
Arvid Norlin
2024-02-19 16:17:06 +01:00
parent 62582cbde0
commit 43b9c9d3b5
4 changed files with 658 additions and 1 deletions

View File

@@ -7,7 +7,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint && tsc"
"lint": "next lint && tsc",
"prepare": "husky install"
},
"dependencies": {
"@contentstack/live-preview-utils": "^1.4.0",
@@ -29,10 +30,16 @@
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.0.4",
"husky": "^9.0.11",
"jiti": "1.21.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"typescript": "^5"
},
"engines": {
"node": "18"
},
"lint-staged": {
"*.{ts,tsx,cjs,mjs,css,md,json}": "prettier --write"
}
}