Skip to content

Commit 41b141d

Browse files
committed
adds lint rule for lint/correctness/noUnusedImports
1 parent 6137244 commit 41b141d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/schema.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
run: |
2222
npm ci
2323
npm run db:pull
24+
npx @biomejs/biome lint --write ./database/migrations
2425
npx @biomejs/biome format --write ./database/migrations
2526
2627
- name: Fix Import Paths

biome.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
"recommended": true,
1010
"style": {
1111
"noNonNullAssertion": "off"
12+
},
13+
"correctness": {
14+
"noUnusedImports": {
15+
"level": "error",
16+
"fix": "safe"
17+
}
1218
}
1319
}
1420
},

database/migrations/schema.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
pgTable,
3-
foreignKey,
43
pgEnum,
54
serial,
65
text,
@@ -10,7 +9,6 @@ import {
109
boolean,
1110
uuid,
1211
} from "drizzle-orm/pg-core";
13-
import { sql } from "drizzle-orm";
1412

1513
export const aiModelEnum = pgEnum("ai_model_enum", [
1614
"OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5",

0 commit comments

Comments
 (0)