Skip to content

Commit 7ee4904

Browse files
committed
Include root TS files in biome checks
1 parent 4319581 commit 7ee4904

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/2.3.15/schema.json",
33
"files": {
4-
"includes": ["src/**"]
4+
"includes": ["src/**", "*.ts"]
55
},
66
"formatter": {
77
"indentStyle": "space",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"scripts": {
66
"build": "vite build",
77
"watch": "vite build --watch",
8-
"lint": "biome check src/ && tsc --noEmit",
9-
"format": "biome format --write src/"
8+
"lint": "biome check && tsc --noEmit",
9+
"format": "biome format --write"
1010
},
1111
"devDependencies": {
1212
"@biomejs/biome": "^2.4.6",

vite.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { writeFileSync } from "fs";
2-
import { fileURLToPath } from "url";
3-
import { dirname, resolve } from "path";
1+
import { writeFileSync } from "node:fs";
2+
import { dirname, resolve } from "node:path";
3+
import { fileURLToPath } from "node:url";
44
import type { Plugin, UserConfig } from "vite";
55

66
const isWatch = process.argv.includes("--watch");
@@ -19,7 +19,7 @@ function notifyAir(): Plugin {
1919
export default {
2020
resolve: {
2121
alias: [
22-
{
22+
{
2323
// svgmap doesn't export src/ in package.json "exports"; alias to bypass
2424
find: /^svgmap-variables$/,
2525
replacement: resolve(
@@ -53,7 +53,7 @@ export default {
5353
},
5454
},
5555
},
56-
plugins: isWatch ? [notifyAir()] : [],
56+
plugins: isWatch ? [notifyAir()] : [],
5757
publicDir: false,
5858
build: {
5959
manifest: "manifest.json",

0 commit comments

Comments
 (0)