Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"build": "tsc",
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --detectOpenHandles",
"lint:types": "tsc --noEmit",
"lint:check": "eslint --max-warnings=0 \"src/**/*.{js,jsx,ts,tsx,json}\"",
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx,json}\""
"lint:check": "eslint --max-warnings=0",
"lint:fix": "eslint --fix"
},
"jest": {
"preset": "@repo/jest-presets/node",
Expand Down
28 changes: 24 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,36 @@
"clean": "turbo run clean",
"dev": "turbo run dev",
"test": "turbo run test",
"lint:types": "turbo run lint:types",
"lint:types": "turbo run lint:types --",
"lint:check": "turbo run lint:check --",
"lint:fix": "turbo run lint:fix --",
"format:check": "prettier --check \"**/*.{ts,tsx,js,css,yaml}\"",
"format:write": "prettier --write \"**/*.{ts,tsx,js,css,yaml}\""
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"npm run lint:check",
"npm run test"
"apps/backend/**/*.{js,jsx,ts,tsx}": [
"npm run lint:check -w backend"
],
"apps/backend/**/*.{ts,tsx}": [
"sh -c 'npm run lint:types -w backend'"
],
"apps/frontend/**/*.{js,jsx,ts,tsx}": [
"npm run lint:check -w frontend"
],
"apps/frontend/**/*.{ts,tsx}": [
"sh -c 'npm run lint:types -w frontend'"
],
"packages/database/**/*.{js,jsx,ts,tsx}": [
"npm run lint:check -w @repo/database"
],
"packages/database/**/*.{ts,tsx}": [
"sh -c 'npm run lint:types -w @repo/database'"
],
"packages/ui/**/*.{js,jsx,ts,tsx}": [
"npm run lint:check -w @repo/ui"
],
"packages/ui/**/*.{ts,tsx}": [
"sh -c 'npm run lint:types -w @repo/ui'"
],
"*.{js,jsx,ts,tsx,md,html,css}": [
"npm run format:check"
Expand Down
4 changes: 2 additions & 2 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"scripts": {
"dev": "docker compose up",
"lint:types": "tsc --noEmit",
"lint:check": "eslint --max-warnings=0 \"src/**/*.{js,jsx,ts,tsx,json}\"",
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx,json}\"",
"lint:check": "eslint --max-warnings=0",
"lint:fix": "eslint --fix",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:push": "drizzle-kit push",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"scripts": {
"ui:add": "npx shadcn@canary add",
"lint:types": "tsc --noEmit",
"lint:check": "eslint --max-warnings=0 \"src/**/*.{js,jsx,ts,tsx,json}\"",
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx,json}\""
"lint:check": "eslint --max-warnings=0",
"lint:fix": "eslint --fix"
},
"peerDependencies": {
"@types/react": ">=18",
Expand Down
Loading