From 267009567fe82d0617860001538e1e0ff2adb3a0 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Tue, 1 Oct 2024 17:03:38 +0100 Subject: [PATCH] fix(js-api): pass correct information (#4152) --- packages/@biomejs/js-api/package.json | 2 +- packages/@biomejs/js-api/src/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/@biomejs/js-api/package.json b/packages/@biomejs/js-api/package.json index 94c8f64fcd24..f351409c57ac 100644 --- a/packages/@biomejs/js-api/package.json +++ b/packages/@biomejs/js-api/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/js-api", - "version": "0.7.0", + "version": "0.7.1", "description": "JavaScript APIs for the Biome package", "scripts": { "tsc": "tsc --noEmit", diff --git a/packages/@biomejs/js-api/src/index.ts b/packages/@biomejs/js-api/src/index.ts index edeceeae7c4e..78c6c3efcbed 100644 --- a/packages/@biomejs/js-api/src/index.ts +++ b/packages/@biomejs/js-api/src/index.ts @@ -159,7 +159,7 @@ export class Biome { const biomePath: BiomePath = { path, was_written: false, - kind: "Handleable", + kind: ["Handleable"], }; this.workspace.openFile({ @@ -260,6 +260,9 @@ export class Biome { path, fix_file_mode: fixFileMode, should_format: false, + only: [], + skip: [], + rule_categories: ["Syntax", "Lint"], }); code = result.code;