Repository navigation
feat(biome-config)!: migrate presets to Biome 2.6 - #835
Merged
Merged
Conversation
Biome 2.6 renamed nursery.useSortedClasses to nursery.useTailwindSortedClasses and dropped the rule's attributes/functions options in favour of the top-level tailwind section (attributes, mergeFunctions, variantFunctions). On Biome 2.6 the old tailwind.json fails to load with "Found an unknown key useSortedClasses", so every consumer of @tutods/biome-config/tailwind broke with the 2.6.3 peer bump already on main. The new tailwind.json matches `biome migrate --write`. Replace the deprecated rules.recommended and per-group recommended flags with preset: "recommended", which Biome 2.6 reports as deprecated. The ../../** noRestrictedImports ban stays unchanged. Its intent (c00ea21, "use a path alias instead") is no relative climb of two or more levels. Loosening it to ../../../** would not help TutoDS: its partials live at features/<f>/components/<c>/partials/ and need ../../../api to reach their own feature, and jps already enforces the same ../../** pattern locally. TutoDS conforms by importing through its same-feature alias instead. BREAKING CHANGE: requires @biomejs/biome >=2.6.3. The tailwind preset now sorts classes in Tailwind v4 order, so consumers get a one-off `biome check --write` reformat of class strings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Biome 2.6 renamed nursery.useSortedClasses to useTailwindSortedClasses and moved its options to the top-level tailwind section; the published 0.14.4 tailwind.json is rejected by 2.6 (unknown key useSortedClasses). Also switches base.json to preset: recommended and updates the README. Validated with biome check on every preset and against TutoDS.