Skip to content

Commit

Permalink
chore: organize imports with Biome (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
luckasnix authored Dec 25, 2024
1 parent da51714 commit 8612544
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ jobs:
run: npm ci
- name: Check types
run: npm run type:check
- name: Check format
run: npm run format:check
- name: Check lint
run: npm run lint:check
- name: Check format, lint and imports
run: npm run check
- name: Test
run: npm run test
- name: Build
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"[json][typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"editor.codeActionsOnSave": {
"source.organizeImports.biome": "explicit"
},
"files.associations": {
".releaserc": "json",
"LICENSE": "plaintext"
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"ignore": [".husky/**", "dist/**", "node_modules/**"]
},
"organizeImports": {
"enabled": false
"enabled": true
},
"linter": {
"enabled": true,
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
"test": "vitest",
"test:watch": "vitest watch",
"type:check": "tsc -p ./tsconfig.json --noEmit",
"format:check": "biome format .",
"check": "biome check .",
"check:write": "biome check --write .",
"format": "biome format --write .",
"format:write": "biome format --write .",
"lint:check": "biome lint .",
"lint": "biome lint .",
"lint:write": "biome lint --write .",
"prepare": "husky"
},
Expand Down
7 changes: 3 additions & 4 deletions tests/object-graph.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { describe, expect, expectTypeOf, test, vi } from "vitest";

import { ObjectGraph } from "../src/object-graph";
import {
type Color,
type Size,
type Shirt,
shirtsMock,
type Size,
extraShirtsMock,
shirtsMock,
} from "../mocks/object-graph.mock";
import { ObjectGraph } from "../src/object-graph";

describe("length", () => {
test("gets the length of the object graph", () => {
Expand Down

0 comments on commit 8612544

Please sign in to comment.