Last active
June 20, 2025 09:11
-
-
Save isimmons/8e4f6c9c34ef68bc6606795535fabe40 to your computer and use it in GitHub Desktop.
biomejs config, v1 and v2, bound to change but is what I'm using ATM
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
{ | |
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | |
"vcs": { | |
"enabled": false, | |
"clientKind": "git", | |
"useIgnoreFile": false | |
}, | |
"files": { | |
"ignoreUnknown": true, | |
"ignore": [] | |
}, | |
"formatter": { | |
"enabled": true, | |
"formatWithErrors": false, | |
"indentStyle": "space", | |
"indentWidth": 2, | |
"lineEnding": "lf", | |
"lineWidth": 80 | |
}, | |
"organizeImports": { | |
"enabled": true | |
}, | |
"linter": { | |
"enabled": true, | |
"rules": { | |
"recommended": true, | |
"nursery": { | |
"useSortedClasses": { | |
"level": "warn", | |
"fix": "safe", | |
"options": { | |
"attributes": ["className"], | |
"functions": ["cn", "clsx", "classNames"] | |
} | |
} | |
} | |
} | |
}, | |
"javascript": { | |
"formatter": { | |
"quoteStyle": "single", | |
"jsxQuoteStyle": "double", | |
"arrowParentheses": "always", | |
"trailingCommas": "all", | |
"semicolons": "asNeeded", | |
"bracketSpacing": true | |
} | |
} | |
} |
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
{ | |
"$schema": "https://biomejs.dev/schemas/2.0.0-beta/schema.json", | |
"vcs": { | |
"enabled": false, | |
"clientKind": "git", | |
"useIgnoreFile": false | |
}, | |
"files": { | |
"ignoreUnknown": true, | |
"includes": ["src/**/*.ts"] | |
}, | |
"formatter": { | |
"enabled": true, | |
"formatWithErrors": false, | |
"indentStyle": "space", | |
"indentWidth": 2, | |
"lineEnding": "lf", | |
"lineWidth": 80 | |
}, | |
"assist": { "actions": { "source": { "organizeImports": "on" } } }, | |
"linter": { | |
"enabled": true, | |
"rules": { | |
"recommended": true, | |
"nursery": { | |
"useSortedClasses": { | |
"level": "warn", | |
"fix": "safe", | |
"options": { | |
"attributes": ["className"], | |
"functions": ["cn", "clsx", "classNames"] | |
} | |
} | |
} | |
} | |
}, | |
"javascript": { | |
"formatter": { | |
"quoteStyle": "single", | |
"jsxQuoteStyle": "double", | |
"arrowParentheses": "always", | |
"trailingCommas": "all", | |
"semicolons": "asNeeded", | |
"bracketSpacing": true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version 2 updates:
Intead of files.ignore, we use files.includes and use the '!' not operator for things we want to ignore.
Instead of organizeImports we can use assist
The docs are great. There is info on customizing how imports are organized and how the new default method organizes.