From 35a7faf2a295d0b8c97fbb806f186306eb23e952 Mon Sep 17 00:00:00 2001 From: Tom Mrazauskas Date: Mon, 8 Apr 2024 21:37:12 +0300 Subject: [PATCH] chore: tweak Biome config --- .github/workflows/checks.yml | 2 +- biome.json | 4 ++++ package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 2a3e45d..c68f21d 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -20,7 +20,7 @@ jobs: with: node-version: lts/* - run: npm ci - - run: npm run check + - run: npx biome ci . test-types: if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/')) diff --git a/biome.json b/biome.json index 6cb278b..87ab143 100644 --- a/biome.json +++ b/biome.json @@ -25,6 +25,10 @@ } }, + "organizeImports": { + "enabled": true + }, + "overrides": [ { "include": ["test/**"], diff --git a/package.json b/package.json index 7cda7f4..32d8601 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "index.js" ], "scripts": { - "check": "biome check .", + "check": "biome check . --apply", "format": "biome format . --write", "test": "mocha", "test:coverage": "c8 --config c8.config.json npm run test",