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

Biome formatter prevents IntelliJ formatter to run even if disabled #62

Open
toverux opened this issue May 25, 2024 · 2 comments
Open

Comments

@toverux
Copy link

toverux commented May 25, 2024

First, thanks for bringing Biome to IntelliJ IDEs!

I have an issue with the formatter, I'd like to disable it on .js files because I prefer how my IDE config handles formatting.

Unfortunately, whether I put "formatter": false a the root of the config or just in the "javascript": block, IntelliJ formatter is still bypassed: it says "Running LSP-based formatter" in the status bar and my settings aren't applied unless I disable Biome plugin entirely. Of course Biome itself honors the setting, so no formatting is done at all.

This forces me to either abandon the Biome plugin or my formatting preferences (did the second because linting in-editor is precious, but I'm quite unhappy with Prettier-style formatting).

@cmattick
Copy link

I am currently evaluating to move from typscript eslint to biome since i have massive performance problems with that setup. Unfortuanetly I have the same issue with the IDE formatter which is apparently disabled completely on activating the biome plugin in the settings. Is there any chance to get that fixed soon?

Maybe a useful note: If i check the "Run format on save" checkbox the biome formatter is running despite I have disabled the formatter in the options. My config which i am testing with looks like this:

{
	"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
	"formatter": {
		"enabled": false
	},
	"linter": {
		"enabled": true,
		"rules": {
			"style": {
				"useImportType": "off",
				"noUselessElse": "off"
			},
			"correctness": {
				"noGlobalObjectCalls": "off"
			},
			"suspicious": {
				"noExplicitAny": "off"
			}
		}
	},
	"organizeImports": {
		"enabled": false
	}
}

@cmattick
Copy link

Additional note: As a workaround I found that changing the IDEs Reformat on save from "whole file" to "changed lines" works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants