Skip to content

Commit 4eec2c1

Browse files
committed
poc(biome): update scripts to use biome lint, format, check
1 parent 4c2f650 commit 4eec2c1

File tree

9 files changed

+48
-14
lines changed

9 files changed

+48
-14
lines changed

.github/workflows/tests-and-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: cd apps/server && pnpm prisma generate
2020
- name: Typecheck
2121
run: pnpm ts:check
22-
- name: Linting
23-
run: pnpm lint
22+
- name: Linting & Formatting
23+
run: pnpm check
2424
- name: Test
2525
run: pnpm test

apps/events/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"scripts": {
77
"dev": "vite --force",
88
"build": "tsc -b && vite build",
9-
"lint": "eslint .",
9+
"lint": "pnpm biome lint src/*",
10+
"lint:fix": "pnpm biome lint --write src/*",
11+
"format": "pnpm biome format src/*",
12+
"format:fix": "pnpm biome format --write src/*",
13+
"check": "pnpm biome check src/*",
14+
"check:fix": "pnpm biome check --write src/*",
1015
"preview": "vite preview",
1116
"test": "vitest run",
1217
"ts:check": "tsc --noEmit"

apps/server/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
"start:prod": "PORT=$PORT NODE_ENV=production node ./dist/index.js",
1111
"ts:check": "tsc --noEmit",
1212
"test": "echo \"Error: no test specified\"",
13-
"lint": "echo \"Lint not setup\" # eslint . --ext .ts,.tsx"
13+
"lint": "pnpm biome lint src/*",
14+
"lint:fix": "pnpm biome lint --write src/*",
15+
"format": "pnpm biome format src/*",
16+
"format:fix": "pnpm biome format --write src/*",
17+
"check": "pnpm biome check src/*",
18+
"check:fix": "pnpm biome check --write src/*"
1419
},
1520
"dependencies": {
1621
"@prisma/client": "5.22.0",

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"name": "graph-framework-monorepo",
33
"private": true,
44
"type": "module",
5-
"workspaces": [
6-
"apps/*",
7-
"packages/*"
8-
],
5+
"workspaces": ["apps/*", "packages/*"],
96
"devDependencies": {
107
"@biomejs/biome": "1.9.4",
118
"escape-string-regexp": "^5.0.0",
@@ -17,6 +14,8 @@
1714
"build": "pnpm --filter graph-framework-utils build",
1815
"ts:check": "pnpm -r ts:check",
1916
"test": "pnpm -r test",
20-
"lint": "pnpm -r lint"
17+
"lint": "pnpm -r lint",
18+
"format": "pnpm -r format",
19+
"check": "pnpm -r check"
2120
}
2221
}

packages/graph-framework-identity/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"scripts": {
77
"test": "vitest run --typecheck",
88
"ts:check": "tsc --noEmit",
9-
"lint": "echo 'No linting configured'"
9+
"lint": "pnpm biome lint src/*",
10+
"lint:fix": "pnpm biome lint --write src/*",
11+
"format": "pnpm biome format src/*",
12+
"format:fix": "pnpm biome format --write src/*",
13+
"check": "pnpm biome check src/*",
14+
"check:fix": "pnpm biome check --write src/*"
1015
},
1116
"exports": {
1217
".": {

packages/graph-framework-schema/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"scripts": {
77
"test": "vitest run --typecheck",
88
"ts:check": "tsc --noEmit",
9-
"lint": "echo 'No linting configured'"
9+
"lint": "pnpm biome lint src/*",
10+
"lint:fix": "pnpm biome lint --write src/*",
11+
"format": "pnpm biome format src/*",
12+
"format:fix": "pnpm biome format --write src/*",
13+
"check": "pnpm biome check src/*",
14+
"check:fix": "pnpm biome check --write src/*"
1015
},
1116
"exports": {
1217
".": {

packages/graph-framework-space-events/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"scripts": {
77
"test": "vitest run --typecheck",
88
"ts:check": "tsc --noEmit",
9-
"lint": "echo 'No linting configured'"
9+
"lint": "pnpm biome lint src/*",
10+
"lint:fix": "pnpm biome lint --write src/*",
11+
"format": "pnpm biome format src/*",
12+
"format:fix": "pnpm biome format --write src/*",
13+
"check": "pnpm biome check src/*",
14+
"check:fix": "pnpm biome check --write src/*"
1015
},
1116
"exports": {
1217
".": {

packages/graph-framework-utils/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@
2626
"build": "vite build",
2727
"test": "vitest run --typecheck",
2828
"ts:check": "tsc --noEmit",
29-
"lint": "echo 'No linting configured'"
29+
"lint": "pnpm biome lint src/*",
30+
"lint:fix": "pnpm biome lint --write src/*",
31+
"format": "pnpm biome format src/*",
32+
"format:fix": "pnpm biome format --write src/*",
33+
"check": "pnpm biome check src/*",
34+
"check:fix": "pnpm biome check --write src/*"
3035
},
3136
"devDependencies": {
3237
"@types/uuid": "^10.0.0",

packages/graph-framework/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"scripts": {
77
"test": "vitest run --typecheck",
88
"ts:check": "tsc --noEmit",
9-
"lint": "echo 'No linting configured'"
9+
"lint": "pnpm biome lint src/*",
10+
"lint:fix": "pnpm biome lint --write src/*",
11+
"format": "pnpm biome format src/*",
12+
"format:fix": "pnpm biome format --write src/*",
13+
"check": "pnpm biome check src/*",
14+
"check:fix": "pnpm biome check --write src/*"
1015
},
1116
"exports": {
1217
".": {

0 commit comments

Comments
 (0)