Skip to content

Conversation

@coopmoney
Copy link

@coopmoney coopmoney commented Nov 26, 2025

It's currently not possible to use plugins because the extends attribute is evaluated relative to the configuration file, not the current working directory.

The current implementation generates the file and doesn't allow overriding the path, so the configuration file is always located at /nix/store/.... Consequently, the path to any plugin or other relative path in the extends attribute will always be incorrect.

This PR also introduces support for a more recent version of biome.

config = l.mkIf cfg.enable {
settings.formatter.biome.options =
let
jsonFile = json.generate "biome.json" cfg.settings;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the switch here, so cfg.validate.enable can also be used with the configPath.

Add an assert so either configPath != null XOR cfg.setting != {} ?

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

Successfully merging this pull request may close these issues.

2 participants