Add Prettier format:check script

This commit is contained in:
Tero Halla-aho 2025-12-10 09:10:30 +02:00
parent 1966bdc631
commit e278be1fb5
3 changed files with 28 additions and 1 deletions

8
.prettierignore Normal file
View file

@ -0,0 +1,8 @@
node_modules
.next
reports
.turbo
coverage
build
public
prisma/.prisma

17
package-lock.json generated
View file

@ -29,6 +29,7 @@
"@types/react-dom": "^18.2.21",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.32",
"prettier": "^3.7.4",
"typescript": "^5.4.5"
},
"engines": {
@ -6281,6 +6282,22 @@
"node": ">= 0.8.0"
}
},
"node_modules/prettier": {
"version": "3.7.4",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.7.4.tgz",
"integrity": "sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==",
"dev": true,
"license": "MIT",
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/prisma": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/prisma/-/prisma-7.1.0.tgz",

View file

@ -8,7 +8,8 @@
"build": "prisma generate && next build",
"start": "next start",
"lint": "next lint",
"type-check": "tsc --noEmit"
"type-check": "tsc --noEmit",
"format:check": "prettier --check ."
},
"dependencies": {
"@prisma/adapter-pg": "^7.0.0",
@ -32,6 +33,7 @@
"@types/react-dom": "^18.2.21",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.32",
"prettier": "^3.7.4",
"typescript": "^5.4.5"
},
"overrides": {