Skip to content

Commit f3cecfc

Browse files
committed
Switch to Biome
1 parent df96d5b commit f3cecfc

File tree

13 files changed

+218
-2094
lines changed

13 files changed

+218
-2094
lines changed

.prettierignore

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

apps/next/package.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"name": "@qwaroo/next",
33
"private": true,
44
"scripts": {
5-
"ui:add": "npx shadcn-ui@latest add -y",
6-
"build": "next build --no-lint",
7-
"dev": "next dev",
8-
"lint": "eslint src"
5+
"format": "biome format . --write",
6+
"lint": "biome lint .",
7+
"check": "tsc --noEmit",
8+
"build": "next build",
9+
"start": "next start",
10+
"dev": "next dev --turbo"
911
},
1012
"dependencies": {
1113
"@mantine/hooks": "^7.2.2",
@@ -33,21 +35,12 @@
3335
},
3436
"devDependencies": {
3537
"@next/bundle-analyzer": "^13.5.6",
36-
"@qwaroo/eslint-config": "workspace:^",
3738
"@qwaroo/scripts": "workspace:^",
3839
"@qwaroo/tailwind-config": "workspace:^",
3940
"@types/gtag.js": "^0.0.18",
4041
"@types/lodash": "^4.14.201",
4142
"@types/node": "20.8.9",
4243
"@types/react": "^18.2.37",
4344
"@types/uuid": "^9.0.7"
44-
},
45-
"eslintConfig": {
46-
"root": true,
47-
"extends": [
48-
"@qwaroo/eslint-config/base",
49-
"@qwaroo/eslint-config/next",
50-
"@qwaroo/eslint-config/react"
51-
]
5245
}
5346
}

biome.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
3+
"files": {
4+
"ignore": [
5+
"dist/",
6+
"build/",
7+
".next/",
8+
".plasmo",
9+
"node_modules/",
10+
"src/generated/"
11+
]
12+
},
13+
"formatter": {
14+
"enabled": true,
15+
"indentStyle": "space",
16+
"lineEnding": "lf"
17+
},
18+
"linter": {
19+
"enabled": true,
20+
"rules": {
21+
"recommended": true,
22+
"style": {
23+
"noNonNullAssertion": "off",
24+
"noUselessElse": "off",
25+
"noParameterAssign": "off"
26+
},
27+
"suspicious": {
28+
"noAssignInExpressions": "off"
29+
}
30+
}
31+
},
32+
"javascript": {
33+
"formatter": {
34+
"quoteStyle": "single",
35+
"jsxQuoteStyle": "double",
36+
"semicolons": "always"
37+
}
38+
}
39+
}

package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@
88
"packages/config/*"
99
],
1010
"scripts": {
11-
"format": "prettier --write ."
11+
"lint": "pnpm turbo --concurrency=50 lint",
12+
"format": "pnpm turbo --concurrency=50 format",
13+
"check": "pnpm turbo --concurrency=50 check",
14+
"build": "pnpm turbo --concurrency=50 build",
15+
"build:packages": "pnpm turbo --concurrency=50 --filter=./packages/* build",
16+
"test": "pnpm check && pnpm turbo --concurrency=50 test",
17+
"pretty": "pnpm lint && pnpm format",
18+
"dev": "pnpm turbo --concurrency=50 dev",
19+
"graph": "npx nx@latest graph"
1220
},
1321
"devDependencies": {
14-
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
15-
"prettier": "^3.0.3",
16-
"turbo": "^1.10.16"
22+
"@biomejs/biome": "1.4.1",
23+
"turbo": "^1.12.4",
24+
"typescript": "^5.3.3"
1725
}
1826
}

packages/config/eslint/base.js

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

packages/config/eslint/next.js

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

packages/config/eslint/package.json

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

packages/config/eslint/react.js

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

packages/scripts/package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
"dist"
99
],
1010
"scripts": {
11+
"format": "biome format . --write",
12+
"lint": "biome lint .",
13+
"check": "tsc --noEmit",
1114
"build": "tsup",
12-
"lint": "eslint src"
15+
"dev": "pnpm build --watch"
1316
},
1417
"dependencies": {
1518
"@commander-js/extra-typings": "^11.1.0",
@@ -20,17 +23,10 @@
2023
"slugify": "^1.6.6"
2124
},
2225
"devDependencies": {
23-
"@qwaroo/eslint-config": "workspace:^",
2426
"@qwaroo/tsup-config": "workspace:^",
2527
"@types/lodash": "^4.14.201",
2628
"@types/node": "20.8.9",
2729
"tsup": "^7.2.0",
2830
"typescript": "^5.2.2"
29-
},
30-
"eslintConfig": {
31-
"root": true,
32-
"extends": [
33-
"@qwaroo/eslint-config/base"
34-
]
3531
}
3632
}

packages/shared/package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
}
2323
},
2424
"scripts": {
25+
"format": "biome format . --write",
26+
"lint": "biome lint .",
27+
"check": "tsc --noEmit",
2528
"build": "tsup",
26-
"lint": "eslint src"
29+
"dev": "pnpm build --watch"
2730
},
2831
"dependencies": {
2932
"chalk": "^4.1.2",
@@ -32,16 +35,9 @@
3235
"pako": "^2.1.0"
3336
},
3437
"devDependencies": {
35-
"@qwaroo/eslint-config": "workspace:^",
3638
"@qwaroo/tsup-config": "workspace:^",
3739
"@types/pako": "^2.0.3",
3840
"tsup": "^7.2.0",
3941
"typescript": "^5.2.2"
40-
},
41-
"eslintConfig": {
42-
"root": true,
43-
"extends": [
44-
"@qwaroo/eslint-config/base"
45-
]
4642
}
4743
}

0 commit comments

Comments
 (0)