-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PoC: Migrate from Eslint + Prettier to Biome (#4545)
This PR completely removes ESLint (linter) and Prettier (formatter) and replaces them with Biome. In this initial PR, only the dependencies and CI configurations are updated to use Biome. All of Biome's failing rules have been temporarily disabled. The plan is to enable these rules incrementally in future PRs. The current Biome formatting configuration closely mirrors the existing Prettier setup, with the only new feature enabled is import sorting.
- Loading branch information
1 parent
4b8706d
commit 1c46573
Showing
282 changed files
with
4,732 additions
and
8,759 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json", | ||
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": ["./coverage", "./dist", "./playwright-report", "./src/generated", "./test-results"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"useEditorconfig": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 100, | ||
"attributePosition": "auto", | ||
"bracketSpacing": true | ||
}, | ||
"organizeImports": { "enabled": true }, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"all": true, | ||
"a11y": { | ||
"noSvgWithoutTitle": "off", | ||
"useAriaPropsForRole": "off", | ||
"useButtonType": "off", | ||
"useKeyWithClickEvents": "off", | ||
"useSemanticElements": "off" | ||
}, | ||
"complexity": { | ||
"noBannedTypes": "off", | ||
"noExcessiveCognitiveComplexity": "off", | ||
"noForEach": "off", | ||
"noUselessFragments": "off", | ||
"noUselessSwitchCase": "off", | ||
"noUselessThisAlias": "off", | ||
"useArrowFunction": "off", | ||
"useDateNow": "off", | ||
"useOptionalChain": "off", | ||
"useSimplifiedLogicExpression": "off" | ||
}, | ||
"correctness": { | ||
"noSwitchDeclarations": "off", | ||
"noUndeclaredDependencies": "off", | ||
"noUndeclaredVariables": "off", | ||
"noUnusedFunctionParameters": "off", | ||
"noUnusedImports": "off", | ||
"noUnusedVariables": "off", | ||
"useExhaustiveDependencies": "off", | ||
"useHookAtTopLevel": "off", | ||
"useImportExtensions": "off" | ||
}, | ||
"performance": { | ||
"noAccumulatingSpread": "off", | ||
"useTopLevelRegex": "off" | ||
}, | ||
"style": { | ||
"noArguments": "off", | ||
"noDefaultExport": "off", | ||
"noImplicitBoolean": "off", | ||
"noInferrableTypes": "off", | ||
"noNamespace": "off", | ||
"noNamespaceImport": "off", | ||
"noNegationElse": "off", | ||
"noNonNullAssertion": "off", | ||
"noUselessElse": "off", | ||
"useBlockStatements": "off", | ||
"useConsistentArrayType": "off", | ||
"useConsistentBuiltinInstantiation": "off", | ||
"useConst": "off", | ||
"useDefaultSwitchClause": "off", | ||
"useEnumInitializers": "off", | ||
"useExplicitLengthCheck": "off", | ||
"useFilenamingConvention": "off", | ||
"useImportType": "off", | ||
"useNamingConvention": "off", | ||
"useNumberNamespace": "off", | ||
"useSelfClosingElements": "off", | ||
"useShorthandArrayType": "off", | ||
"useSingleCaseStatement": "off", | ||
"useTemplate": "off" | ||
}, | ||
"suspicious": { | ||
"noArrayIndexKey": "off", | ||
"noAssignInExpressions": "off", | ||
"noConsole": "off", | ||
"noConsoleLog": "off", | ||
"noDoubleEquals": "off", | ||
"noEmptyBlock": "off", | ||
"noEmptyBlockStatements": "off", | ||
"noEvolvingTypes": "off", | ||
"noExplicitAny": "off", | ||
"noExportsInTest": "off", | ||
"noGlobalIsNan": "off", | ||
"noImplicitAnyLet": "off", | ||
"noReactSpecificProps": "off", | ||
"useAwait": "off" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingCommas": "es5", | ||
"semicolons": "always", | ||
"arrowParentheses": "always", | ||
"bracketSameLine": false, | ||
"quoteStyle": "double", | ||
"attributePosition": "auto", | ||
"bracketSpacing": true | ||
} | ||
} | ||
} |
This file contains 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
Oops, something went wrong.