Add linting and typechecking scripts for backend/email

This commit is contained in:
MartinBraquet
2026-02-23 22:19:01 +01:00
parent 9870ac5029
commit f0c645b16d
2 changed files with 7 additions and 4 deletions

View File

@@ -5,7 +5,10 @@
"scripts": {
"dev": "email dev --port 3001",
"build": "tsc -b",
"test": "jest --config jest.config.js --passWithNoTests"
"test": "jest --config jest.config.js --passWithNoTests",
"lint": "npx eslint . --max-warnings 0",
"lint-fix": "npx eslint . --fix",
"typecheck": "npx tsc --noEmit"
},
"dependencies": {
"@react-email/components": "0.0.33",

View File

@@ -11,9 +11,9 @@
"web"
],
"scripts": {
"lint": "yarn --cwd=web lint; yarn --cwd=common lint; yarn --cwd=backend/api lint; yarn --cwd=backend/shared lint",
"lint-fix": "yarn --cwd=web lint-fix; yarn --cwd=common lint-fix; yarn --cwd=backend/api lint-fix; yarn --cwd=backend/shared lint-fix",
"typecheck": "yarn --cwd=web typecheck; yarn --cwd=backend/api typecheck; yarn --cwd=common typecheck; yarn --cwd=backend/shared typecheck",
"lint": "yarn --cwd=web lint; yarn --cwd=common lint; yarn --cwd=backend/api lint; yarn --cwd=backend/shared lint; yarn --cwd=backend/email lint",
"lint-fix": "yarn --cwd=web lint-fix; yarn --cwd=common lint-fix; yarn --cwd=backend/api lint-fix; yarn --cwd=backend/shared lint-fix; yarn --cwd=backend/email lint-fix",
"typecheck": "yarn --cwd=web typecheck; yarn --cwd=backend/api typecheck; yarn --cwd=common typecheck; yarn --cwd=backend/shared typecheck; yarn --cwd=backend/email typecheck",
"prettier": "prettier --write .",
"prettier:check": "prettier --check .",
"dev": "./scripts/run_local.sh dev",