Skip to content

Commit fb971b4

Browse files
author
Umutcan ÖNER
committed
chore: update biome configuration and add lint:fix scripts
- Update Biome to v2.0.5 schema - Fix deprecated trailingComma property to trailingCommas - Add lint:fix and format:fix npm scripts - Apply Biome formatting to imports in scripts/index.ts - Remove trailing newline in tsconfig.build.json
1 parent f901bdb commit fb971b4

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed

biome.json

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.5.0/schema.json",
3-
"organizeImports": {
4-
"enabled": true
2+
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
3+
"files": {
4+
"ignoreUnknown": false
55
},
66
"linter": {
77
"enabled": true,
@@ -26,32 +26,18 @@
2626
"indentStyle": "space",
2727
"indentWidth": 2,
2828
"lineEnding": "lf",
29-
"lineWidth": 100,
30-
"attributePosition": "auto"
29+
"lineWidth": 100
3130
},
3231
"javascript": {
3332
"formatter": {
3433
"jsxQuoteStyle": "double",
3534
"quoteProperties": "asNeeded",
36-
"trailingComma": "es5",
35+
"trailingCommas": "es5",
3736
"semicolons": "always",
3837
"arrowParentheses": "always",
3938
"bracketSpacing": true,
4039
"bracketSameLine": false,
4140
"quoteStyle": "single"
4241
}
43-
},
44-
"files": {
45-
"ignore": [
46-
"**/node_modules/**",
47-
"**/dist/**",
48-
"**/.next/**",
49-
"**/out/**",
50-
"**/coverage/**",
51-
"**/.turbo/**",
52-
"**/build/**",
53-
"**/*.min.js",
54-
"**/*.min.css"
55-
]
5642
}
5743
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@
2121
"scripts": {
2222
"analyze": "turbo run analyze",
2323
"lint": "turbo run lint",
24+
"lint:fix": "biome check --write .",
2425
"typecheck": "turbo run typecheck",
2526
"test": "turbo run test",
2627
"build": "turbo run build",
2728
"build:cli": "tsup",
2829
"dev": "turbo run dev",
2930
"clean": "turbo run clean",
3031
"format": "biome format --write .",
32+
"format:fix": "biome format --write .",
3133
"check": "biome check .",
3234
"prepare": "husky install"
3335
},

scripts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { readFileSync } from 'node:fs';
8-
import { join, dirname } from 'node:path';
8+
import { dirname, join } from 'node:path';
99
import { fileURLToPath } from 'node:url';
1010

1111
// Get the directory of this script

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"composite": false,
66
"tsBuildInfoFile": null
77
}
8-
}
8+
}

0 commit comments

Comments
 (0)