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 plugin in intellij not respecting settings in biome.json #42

Open
kudlatyamroth opened this issue Mar 22, 2024 · 5 comments
Open

Comments

@kudlatyamroth
Copy link

kudlatyamroth commented Mar 22, 2024

I installed pluign in intellij idea:
plugin version: 1.0.0
idea version: 2023.3.6 build IU-233.15026.9

project struct:
| src
| |
| test
|| node_modules
|| package.json
|| biome.json
|| spec
||| some_tests.ts

when i edit some_tests.ts it not read biome.json config, i tried restarting intellij and nothing helps
only switch to manual configuration and specify location for exec in node_modules and config in test dir

running:
npx @biomejs/biome format --write ./specs/some_tests.ts
correctly format, respecting biome.json configuration

@ematipico
Copy link
Member

ematipico commented Mar 23, 2024

You have to provide a config path to the plugin or move the configuration file at the root of your project.

That's the current constraints we have in the extension.

@kudlatyamroth
Copy link
Author

Info beside automatic configuration says it will search in file parents directories, not root of a project

@millievn
Copy link

millievn commented Jul 30, 2024

@ematipico same issue after put config file at the root.

i have two projects with different config. i config some rules in project A while project B not.
No error in project A cli output, but biome plugins still read project B config and show error when mouse over
no error from biome plugins when i sync config from A to B

@bahaa-kallas
Copy link

bahaa-kallas commented Sep 9, 2024

I am also having an issue in Intellij.

I have the following structure in a monorepo:

/packages
  /frontend
     biome.json
  /server
     biome.json

In the frontend code which is a react application I am getting errors shown inside intellij related to the following rule lint/correctness/useExhaustiveDependencies for me I want to disable it in so I update biome.json and set it to "off" but the IDE seems to totally not respect the value in my config and I still have the errors in the IDE.

I have tried everything.

  • Restarted the language server multiple times.
  • Invalidated Intellij caches.
  • Configured the Intellij plugin manually to point at the biome exec and the biome.json available in the frontend project (Because I though maybe monorepo support is not perfect yet)

But none of these helped with getting the error removed from the IDE problems tab (also highlighted in code)

Versions:

  • IntelliJ IDEA 2024.2.0.2 (Ultimate Edition) Build #IU-242.20224.419, built on August 19, 2024
  • Biome plugin version 1.4.0
  • Biome package version 1.8.0

@kinbuild
Copy link

I am also experiencing this

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

5 participants