Skip to content

Commit 5c5b55e

Browse files
committed
replace prettier and eslint with biome
1 parent 1d419fd commit 5c5b55e

10 files changed

Lines changed: 45 additions & 64 deletions

File tree

.editorconfig

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

.prettierrc.json

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Simple skeleton for TypeScript Node programs.
1212
(reason for doing this is to make sure you get the latest stable versions).
1313
2. After this is done you you can remove the `setup` file.
1414
3. Make sure you edit `package.json` with a new name and meta information.
15-
4. Open `.github/workflows/tests.yml` and change `run: ./setup` to: `run: npm install`.
15+
4. Open `.github/workflows/test.yml` and change `run: ./setup` to: `run: npm install`.

biome.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.2/schema.json",
3+
"files": {
4+
"ignoreUnknown": false
5+
},
6+
"formatter": {
7+
"enabled": true,
8+
"indentStyle": "space"
9+
},
10+
"linter": {
11+
"enabled": true,
12+
"rules": {
13+
"recommended": true
14+
}
15+
},
16+
"javascript": {
17+
"formatter": {
18+
"quoteStyle": "single",
19+
"semicolons": "asNeeded"
20+
}
21+
},
22+
"assist": {
23+
"enabled": true,
24+
"actions": {
25+
"source": {
26+
"organizeImports": "on"
27+
}
28+
}
29+
}
30+
}

eslint.config.mjs

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

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test": "vitest --run",
99
"test:watch": "vitest --watch",
1010
"test:coverage": "vitest --coverage --watch=false",
11-
"lint": "npx eslint .",
11+
"lint": "npx biome check",
1212
"build": "npx tsc"
1313
},
1414
"author": "Tobias Sandelius @tobidelius",
@@ -21,5 +21,12 @@
2121
"type": "git",
2222
"url": "git+https://github.com/tobidelius/typescript-node-skeleton.git"
2323
},
24-
"devDependencies": {}
24+
"devDependencies": {
25+
"@biomejs/biome": "^2.4.2",
26+
"@tsconfig/node24": "^24.0.4",
27+
"@types/node": "^25.2.3",
28+
"@vitest/coverage-v8": "^4.0.18",
29+
"typescript": "^5.9.3",
30+
"vitest": "^4.0.18"
31+
}
2532
}

setup

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
npm i -D typescript \
2-
@tsconfig/node22 \
2+
@tsconfig/node24 \
33
@types/node \
44
@vitest/coverage-v8 \
55
vitest \
6-
eslint \
7-
@eslint/js \
8-
typescript-eslint \
9-
prettier \
10-
eslint-plugin-prettier \
11-
eslint-config-prettier
6+
@biomejs/biome

tsconfig.eslint.json

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

tsconfig.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@tsconfig/node22/tsconfig.json",
2+
"extends": "@tsconfig/node24/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./dist",
55
"declaration": true,
@@ -12,12 +12,6 @@
1212
"vitest/globals"
1313
]
1414
},
15-
"include": [
16-
"src/**/*.ts",
17-
"test/**/*.ts"
18-
],
19-
"exclude": [
20-
"node_modules",
21-
"dist"
22-
]
15+
"include": ["src/**/*.ts", "test/**/*.ts"],
16+
"exclude": ["node_modules", "dist"]
2317
}

0 commit comments

Comments
 (0)