diff --git a/apps/docs/package.json b/apps/docs/package.json index 7c527b3086..41b527170b 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -4,13 +4,14 @@ "description": "", "main": "index.js", "scripts": { + "build": "next build", "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next", "dev": "PORT=4000 next", "lint": "next lint", - "type-check": "tsc --pretty --noEmit", + "lint:fix": "next lint . --ext .ts,.js,.tsx,.jsx --fix", "lint:report": "eslint . --format json --output-file ../../lint-results/docs.json", "start": "PORT=4000 next start", - "build": "next build" + "type-check": "tsc --pretty --noEmit" }, "author": "Cal.com, Inc.", "license": "MIT", diff --git a/apps/swagger/package.json b/apps/swagger/package.json index 064d44adf8..42d112dc63 100644 --- a/apps/swagger/package.json +++ b/apps/swagger/package.json @@ -3,8 +3,12 @@ "version": "1.0.0", "private": true, "scripts": { - "dev": "PORT=4200 next dev", "build": "next build", + "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next", + "dev": "PORT=4200 next dev", + "lint": "next lint", + "lint:fix": "next lint . --ext .ts,.js,.tsx,.jsx --fix", + "lint:report": "eslint . --format json --output-file ../../lint-results/swagger.json", "start": "PORT=4200 next start" }, "dependencies": { diff --git a/apps/swagger/tsconfig.json b/apps/swagger/tsconfig.json index 70f2e5edf4..053c5a63af 100644 --- a/apps/swagger/tsconfig.json +++ b/apps/swagger/tsconfig.json @@ -1,24 +1,17 @@ { + "extends": "@calcom/tsconfig/nextjs.json", "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": false, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, "baseUrl": ".", "paths": { "@lib/*": ["lib/*"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "include": [ + "next-env.d.ts", + "../../packages/types/*.d.ts", + "../../packages/types/next-auth.d.ts", + "**/*.ts", + "**/*.tsx" + ], "exclude": ["node_modules"] } diff --git a/apps/web/package.json b/apps/web/package.json index 322167dfca..06e9dc9a4d 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -17,8 +17,8 @@ "build": "next build", "start": "next start", "lint": "next lint", - "lint:report": "eslint . --format json --output-file ../../lint-results/web.json", "lint:fix": "next lint . --ext .ts,.js,.tsx,.jsx --fix", + "lint:report": "eslint . --format json --output-file ../../lint-results/web.json", "check-changed-files": "ts-node scripts/ts-check-changed-files.ts" }, "engines": { diff --git a/packages/app-store/package.json b/packages/app-store/package.json index 54efb0b3db..ef0e224a50 100644 --- a/packages/app-store/package.json +++ b/packages/app-store/package.json @@ -5,6 +5,11 @@ "files": [ "components.ts" ], + "scripts": { + "lint": "eslint . --ext .ts,.js,.tsx,.jsx", + "lint:fix": "eslint . --ext .ts,.js,.tsx,.jsx --fix", + "lint:report": "eslint . --format json --output-file ../../lint-results/app-store.json" + }, "dependencies": { "@calcom/lib": "*", "@calcom/zoomvideo": "*", diff --git a/packages/lib/package.json b/packages/lib/package.json index a3e1014275..51e24ef612 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -4,6 +4,11 @@ "main": "./index.ts", "types": "./index.ts", "license": "MIT", + "scripts": { + "lint": "eslint . --ext .ts,.js,.tsx,.jsx", + "lint:fix": "eslint . --ext .ts,.js,.tsx,.jsx --fix", + "lint:report": "eslint . --format json --output-file ../../lint-results/app-store.json" + }, "dependencies": { "@calcom/dayjs": "*", "@prisma/client": "^3.15.2",