-
Notifications
You must be signed in to change notification settings - Fork 35
Replace ESLint + Prettier with Biome #310
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
Changes from all commits
993ea2d
65a063d
f68ef93
448e350
0ef4f53
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| { | ||
| "$schema": "https://biomejs.dev/schemas/2.4.11/schema.json", | ||
| "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, | ||
| "files": { | ||
| "ignoreUnknown": true, | ||
| "includes": ["packages/**", "builds/**", "tools/**", "global.d.ts", "vitest.config.ts"] | ||
| }, | ||
| "formatter": { | ||
| "enabled": true, | ||
| "indentStyle": "space", | ||
| "indentWidth": 2, | ||
| "lineWidth": 120, | ||
| "lineEnding": "lf" | ||
| }, | ||
| "linter": { | ||
| "enabled": true, | ||
| "includes": ["**/*.ts"], | ||
| "rules": { | ||
| "recommended": true, | ||
| "complexity": { | ||
| "noUselessEscapeInRegex": "off", | ||
| "noArguments": "off", | ||
| "noBannedTypes": "off", | ||
| "useArrowFunction": "off", | ||
| "noThisInStatic": "off" | ||
| }, | ||
| "correctness": { | ||
|
Comment on lines
+18
to
+27
|
||
| "noUnusedVariables": "warn", | ||
| "noUnusedImports": "warn", | ||
| "noUnusedFunctionParameters": "warn" | ||
| }, | ||
| "style": { | ||
| "useConst": "off", | ||
| "useArrayLiterals": "off", | ||
| "noNamespace": "off", | ||
| "noNonNullAssertion": "off" | ||
| }, | ||
| "suspicious": { | ||
| "noExplicitAny": "off", | ||
| "noAssignInExpressions": "off", | ||
| "noMisleadingCharacterClass": "off", | ||
| "noDoubleEquals": "off", | ||
| "noRedeclare": "error", | ||
| "noShadowRestrictedNames": "off", | ||
| "noControlCharactersInRegex": "off", | ||
| "noEmptyBlockStatements": "off", | ||
| "noPrototypeBuiltins": "off", | ||
| "noFallthroughSwitchClause": "error", | ||
| "noImplicitAnyLet": "off", | ||
| "noTemplateCurlyInString": "off", | ||
| "useIterableCallbackReturn": "off", | ||
| "noGlobalIsNan": "off", | ||
| "noGlobalIsFinite": "off", | ||
| "noThenProperty": "off", | ||
| "useGetterReturn": "error" | ||
| }, | ||
| "performance": { | ||
| "noDelete": "off" | ||
| }, | ||
| "security": { | ||
| "noGlobalEval": "off" | ||
| } | ||
| } | ||
| }, | ||
| "javascript": { | ||
| "formatter": { | ||
| "semicolons": "asNeeded", | ||
| "trailingCommas": "none", | ||
| "quoteStyle": "single", | ||
| "arrowParentheses": "asNeeded" | ||
| } | ||
| }, | ||
| "assist": { | ||
| "enabled": false | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
files.includesrestricts Biome to onlypackages/**,builds/**, andglobal.d.ts, which is a narrower scope than the currentprettier ./eslint .scripts (e.g., it would excludetools/build.tsand root config.tsfiles). If the goal is a full ESLint+Prettier replacement, expand this include list (or remove it) sobiome format/biome cicovers the same files as today.