style: linting and formatting

This commit is contained in:
Riccardo
2023-11-29 19:44:39 +01:00
parent 74ec709155
commit 77a9d50927
23 changed files with 1452 additions and 127 deletions

View File

@@ -1,13 +1,16 @@
{
"name": "next-newsletter",
"version": "0.1.0",
"private": true,
"description": "Template for NodeJS APIs with TypeScript, with configurations for linting and testing",
"author": "riccardo.s@hey.com",
"scripts": {
"dev": "next dev",
"build": "prisma generate && next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --config .prettierrc 'app/' --write",
"typecheck": "tsc --noEmit",
"prepare": "husky install",
"vercel:link": "vercel link",
"vercel:env": "vercel env pull .env",
"prisma:push": "npx prisma db push",
@@ -15,21 +18,39 @@
},
"dependencies": {
"@prisma/client": "^5.6.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"next": "14.0.3",
"react": "^18",
"react-dom": "^18",
"zod": "^3.22.4"
"zod": "^3.22.4",
"zod-validation-error": "^2.1.0"
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@typescript-eslint/parser": "^6.12.0",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.0.3",
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"postcss": "^8",
"prettier": "^3.1.0",
"prettier-plugin-tailwindcss": "^0.5.7",
"prisma": "^5.6.0",
"tailwindcss": "^3.3.0",
"typescript": "^5"
},
"lint-staged": {
"*.ts": [
"eslint --quiet --fix"
],
"*.{json,ts}": [
"prettier --write --ignore-unknown"
]
}
}