forked from vercel/ai-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to vercel's biome setup (vercel#543)
- Loading branch information
1 parent
6ade1b9
commit be6e79b
Showing
49 changed files
with
429 additions
and
217 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 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 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 |
---|---|---|
|
@@ -20,7 +20,7 @@ export default function Page() { | |
login, | ||
{ | ||
status: 'idle', | ||
} | ||
}, | ||
); | ||
|
||
useEffect(() => { | ||
|
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ export default function Page() { | |
register, | ||
{ | ||
status: 'idle', | ||
} | ||
}, | ||
); | ||
|
||
useEffect(() => { | ||
|
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 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 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 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 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 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 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 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,131 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": [ | ||
"**/pnpm-lock.yaml", | ||
"lib/db/migrations", | ||
"lib/editor/react-renderer.tsx", | ||
"node_modules", | ||
".next", | ||
"public", | ||
".vercel" | ||
] | ||
}, | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"defaultBranch": "main", | ||
"useIgnoreFile": true | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 80, | ||
"attributePosition": "auto" | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"a11y": { | ||
"useHtmlLang": "warn", // Not in recommended ruleset, turning on manually | ||
"noHeaderScope": "warn", // Not in recommended ruleset, turning on manually | ||
"useValidAriaRole": { | ||
"level": "warn", | ||
"options": { | ||
"ignoreNonDom": false, | ||
"allowInvalidRoles": ["none", "text"] | ||
} | ||
}, | ||
"useSemanticElements": "off", // Rule is buggy, revisit later | ||
"noSvgWithoutTitle": "off", // We do not intend to adhere to this rule | ||
"useMediaCaption": "off", // We would need a cultural change to turn this on | ||
"noAutofocus": "off", // We're highly intentional about when we use autofocus | ||
"noBlankTarget": "off" // Covered by Conformance | ||
}, | ||
"complexity": { | ||
"noUselessStringConcat": "warn", // Not in recommended ruleset, turning on manually | ||
"noForEach": "off", // forEach is too familiar to ban | ||
"noUselessSwitchCase": "off", // Turned off due to developer preferences | ||
"noUselessThisAlias": "off" // Turned off due to developer preferences | ||
}, | ||
"correctness": { | ||
"noUnusedImports": "warn", // Not in recommended ruleset, turning on manually | ||
"useArrayLiterals": "warn", // Not in recommended ruleset, turning on manually | ||
"noNewSymbol": "warn", // Not in recommended ruleset, turning on manually | ||
"useJsxKeyInIterable": "off", // Rule is buggy, revisit later | ||
"useExhaustiveDependencies": "off", // Community feedback on this rule has been poor, we will continue with ESLint | ||
"noUnnecessaryContinue": "off" // Turned off due to developer preferences | ||
}, | ||
"security": { | ||
"noDangerouslySetInnerHtml": "off" // Covered by Conformance | ||
}, | ||
"style": { | ||
"useFragmentSyntax": "warn", // Not in recommended ruleset, turning on manually | ||
"noYodaExpression": "warn", // Not in recommended ruleset, turning on manually | ||
"useDefaultParameterLast": "warn", // Not in recommended ruleset, turning on manually | ||
"useExponentiationOperator": "off", // Obscure and arguably not easily readable | ||
"noUnusedTemplateLiteral": "off", // Stylistic opinion | ||
"noUselessElse": "off" // Stylistic opinion | ||
}, | ||
"suspicious": { | ||
"noExplicitAny": "off" // We trust Vercelians to use any only when necessary | ||
}, | ||
"nursery": { | ||
"noStaticElementInteractions": "warn", | ||
"noHeadImportInDocument": "warn", | ||
"noDocumentImportInPage": "warn", | ||
"noDuplicateElseIf": "warn", | ||
"noIrregularWhitespace": "warn", | ||
"useValidAutocomplete": "warn" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"jsxRuntime": "reactClassic", | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingCommas": "all", | ||
"semicolons": "always", | ||
"arrowParentheses": "always", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"quoteStyle": "single", | ||
"attributePosition": "auto" | ||
} | ||
}, | ||
"json": { | ||
"formatter": { | ||
"enabled": true, | ||
"trailingCommas": "none" | ||
}, | ||
"parser": { | ||
"allowComments": true, | ||
"allowTrailingCommas": false | ||
} | ||
}, | ||
"css": { | ||
"formatter": { "enabled": false }, | ||
"linter": { "enabled": false } | ||
}, | ||
"organizeImports": { "enabled": false }, | ||
"overrides": [ | ||
// Playwright requires an object destructure, even if empty | ||
// https://github.com/microsoft/playwright/issues/30007 | ||
{ | ||
"include": ["playwright/**"], | ||
"linter": { | ||
"rules": { | ||
"correctness": { | ||
"noEmptyPattern": "off" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.