Skip to content

Commit 96855ea

Browse files
volneiemrysal
andauthored
chore: upgrade eslint 9 (calcom#24002)
* add eslint package * upgrade lint * remove linting for generated files from trpc * ts imports * add missing features lint script * enable turbo ui * reference workspace deps correctly * fixes * Fix eslint test * Fix eslint test * npm run all back * fix e2e * fix e2e * fix e2e --------- Co-authored-by: Alex van Andel <me@alexvanandel.com>
1 parent 57150d9 commit 96855ea

155 files changed

Lines changed: 1906 additions & 1483 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 115 deletions
This file was deleted.

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/api/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
"connect": "^3.7.0",
1414
"http": "^0.0.1-security",
1515
"http-proxy-middleware": "^2.0.6"
16+
},
17+
"devDependencies": {
18+
"@calcom/eslint-config": "workspace:*"
1619
}
1720
}

apps/api/v1/eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { nextJsConfig } from "@calcom/eslint-config/next-js";
2+
3+
export default nextJsConfig;

apps/api/v1/package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,27 @@
1010
"build": "next build",
1111
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next",
1212
"dev": "PORT=3003 next dev",
13-
"lint": "eslint . --ignore-path .gitignore",
13+
"lint": "eslint .",
1414
"lint:fix": "eslint . --ext .ts,.js,.tsx,.jsx --fix",
1515
"start": "PORT=3003 next start",
1616
"docker-start-api": "PORT=80 next start",
1717
"type-check": "tsc --pretty --noEmit",
1818
"type-check:ci": "tsc-absolute --pretty --noEmit"
1919
},
2020
"devDependencies": {
21-
"@calcom/tsconfig": "*",
22-
"@calcom/types": "*",
21+
"@calcom/eslint-config": "workspace:*",
22+
"@calcom/tsconfig": "workspace:*",
23+
"@calcom/types": "workspace:*",
2324
"node-mocks-http": "^1.11.0"
2425
},
2526
"dependencies": {
26-
"@calcom/app-store": "*",
27-
"@calcom/dayjs": "*",
28-
"@calcom/emails": "*",
29-
"@calcom/features": "*",
30-
"@calcom/lib": "*",
31-
"@calcom/prisma": "*",
32-
"@calcom/trpc": "*",
27+
"@calcom/app-store": "workspace:*",
28+
"@calcom/dayjs": "workspace:*",
29+
"@calcom/emails": "workspace:*",
30+
"@calcom/features": "workspace:*",
31+
"@calcom/lib": "workspace:*",
32+
"@calcom/prisma": "workspace:*",
33+
"@calcom/trpc": "workspace:*",
3334
"@prisma/nextjs-monorepo-workaround-plugin": "^6.16.1",
3435
"@sentry/nextjs": "^9.15.0",
3536
"bcryptjs": "^2.4.3",

apps/api/v2/.eslintrc.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

apps/api/v2/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
},
3737
"dependencies": {
3838
"@axiomhq/winston": "^1.2.0",
39-
"@calcom/platform-constants": "*",
40-
"@calcom/platform-enums": "*",
41-
"@calcom/platform-libraries": "*",
42-
"@calcom/platform-types": "*",
43-
"@calcom/platform-utils": "*",
44-
"@calcom/prisma": "*",
39+
"@calcom/platform-constants": "workspace:*",
40+
"@calcom/platform-enums": "workspace:*",
41+
"@calcom/platform-libraries": "workspace:*",
42+
"@calcom/platform-types": "workspace:*",
43+
"@calcom/platform-utils": "workspace:*",
44+
"@calcom/prisma": "workspace:*",
4545
"@golevelup/ts-jest": "^0.4.0",
4646
"@microsoft/microsoft-graph-types-beta": "^0.42.0-preview",
4747
"@nest-lab/throttler-storage-redis": "1.0.0",
@@ -88,6 +88,7 @@
8888
"zod": "^3.22.4"
8989
},
9090
"devDependencies": {
91+
"@calcom/eslint-config": "workspace:*",
9192
"@nestjs/cli": "^10.0.0",
9293
"@nestjs/schematics": "^10.0.0",
9394
"@nestjs/testing": "^10.0.0",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { nextJsConfig } from "@calcom/eslint-config/next-js";
2+
3+
export default nextJsConfig;

apps/ui-playground/package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"dev": "next dev --turbopack --port=1337",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "eslint ."
1010
},
1111
"dependencies": {
12-
"@calcom/config": "*",
13-
"@calcom/lib": "*",
14-
"@calcom/ui": "*",
12+
"@calcom/config": "workspace:*",
13+
"@calcom/lib": "workspace:*",
14+
"@calcom/ui": "workspace:*",
1515
"@radix-ui/react-tooltip": "^1.1.8",
1616
"airtable": "^0.12.2",
1717
"fumadocs-core": "^14.5.4",
@@ -24,14 +24,12 @@
2424
"react-hot-toast": "^2.5.2"
2525
},
2626
"devDependencies": {
27-
"@calcom/tsconfig": "*",
28-
"@eslint/eslintrc": "^3",
27+
"@calcom/eslint-config": "workspace:*",
28+
"@calcom/tsconfig": "workspace:*",
2929
"@types/mdx": "^2.0.13",
3030
"@types/node": "^20",
3131
"@types/react": "^18",
3232
"@types/react-dom": "^18",
33-
"eslint": "^8.34.0",
34-
"eslint-config-next": "15.1.6",
3533
"postcss": "^8",
3634
"tailwindcss": "^3.4.1",
3735
"typescript": "^5.9.0-beta"

0 commit comments

Comments
 (0)