Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: organize imports with Biome #64

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading