-
Notifications
You must be signed in to change notification settings - Fork 8
POC(biome): use biomejs for linting and formatting #23
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4eefafb
POC(biome): implement biome for linting, formatting
cmwhited 258d74b
Merge branch 'main' of github.com:geobrowser/graph-framework into chr…
cmwhited bd8333d
poc(biome): rebase on main. run biome check/fix on utils pkg
cmwhited 5b25606
poc(biome): run biome check/fix on graph-framework-space-events
cmwhited d14d371
poc(biome): run biome check/fix on graph-framework-schema
cmwhited c47394b
poc(biome): run biome check/fix on apps/server
cmwhited 4c2f650
poc(biome): run biome check/fix on apps/events
cmwhited 4eec2c1
poc(biome): update scripts to use biome lint, format, check
cmwhited File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["biomejs.biome"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.removeUnused.ts": "explicit", | ||
"source.organizeImports.biome": "explicit" | ||
}, | ||
"[javascript]": { | ||
"editor.maxTokenizationLineLength": 2500, | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[markdown]": { | ||
"editor.unicodeHighlight.ambiguousCharacters": false, | ||
"editor.unicodeHighlight.invisibleCharacters": false, | ||
"diffEditor.ignoreTrimWhitespace": false, | ||
"editor.wordWrap": "on", | ||
"editor.quickSuggestions": { | ||
"comments": "off", | ||
"strings": "off", | ||
"other": "off" | ||
}, | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[json]": { | ||
"editor.quickSuggestions": { | ||
"strings": true | ||
}, | ||
"editor.suggest.insertMode": "replace", | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[jsonc]": { | ||
"editor.quickSuggestions": { | ||
"strings": true | ||
}, | ||
"editor.suggest.insertMode": "replace", | ||
"editor.defaultFormatter": "biomejs.biome" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,251 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"extends": ["../../biome.jsonc"], | ||
"linter": { "rules": { "recommended": false }, "ignore": ["dist"] }, | ||
"overrides": [ | ||
{ | ||
"include": ["**/*.{ts,tsx}"], | ||
"linter": { | ||
"rules": { | ||
"complexity": { | ||
"noExtraBooleanCast": "error", | ||
"noMultipleSpacesInRegularExpressionLiterals": "error", | ||
"noUselessCatch": "error", | ||
"noWith": "error" | ||
}, | ||
"correctness": { | ||
"noConstAssign": "error", | ||
"noConstantCondition": "error", | ||
"noEmptyCharacterClassInRegex": "error", | ||
"noEmptyPattern": "error", | ||
"noGlobalObjectCalls": "error", | ||
"noInvalidBuiltinInstantiation": "error", | ||
"noInvalidConstructorSuper": "error", | ||
"noNonoctalDecimalEscape": "error", | ||
"noPrecisionLoss": "error", | ||
"noSelfAssign": "error", | ||
"noSetterReturn": "error", | ||
"noSwitchDeclarations": "error", | ||
"noUndeclaredVariables": "error", | ||
"noUnreachable": "error", | ||
"noUnreachableSuper": "error", | ||
"noUnsafeFinally": "error", | ||
"noUnsafeOptionalChaining": "error", | ||
"noUnusedLabels": "error", | ||
"noUnusedPrivateClassMembers": "error", | ||
"noUnusedVariables": "error", | ||
"useIsNan": "error", | ||
"useValidForDirection": "error", | ||
"useYield": "error" | ||
}, | ||
"suspicious": { | ||
"noAssignInExpressions": "error", | ||
"noAsyncPromiseExecutor": "error", | ||
"noCatchAssign": "error", | ||
"noClassAssign": "error", | ||
"noCompareNegZero": "error", | ||
"noControlCharactersInRegex": "error", | ||
"noDebugger": "error", | ||
"noDuplicateCase": "error", | ||
"noDuplicateClassMembers": "error", | ||
"noDuplicateObjectKeys": "error", | ||
"noDuplicateParameters": "error", | ||
"noEmptyBlockStatements": "error", | ||
"noFallthroughSwitchClause": "error", | ||
"noFunctionAssign": "error", | ||
"noGlobalAssign": "error", | ||
"noImportAssign": "error", | ||
"noMisleadingCharacterClass": "error", | ||
"noPrototypeBuiltins": "error", | ||
"noRedeclare": "error", | ||
"noShadowRestrictedNames": "error", | ||
"noSparseArray": "error", | ||
"noUnsafeNegation": "error", | ||
"useGetterReturn": "error", | ||
"useValidTypeof": "error" | ||
} | ||
} | ||
} | ||
}, | ||
{ "include": ["**/*.{ts,tsx}"], "javascript": { "globals": [] } }, | ||
{ | ||
"include": ["**/*.{ts,tsx}"], | ||
"linter": { | ||
"rules": { | ||
"correctness": { | ||
"noConstAssign": "off", | ||
"noGlobalObjectCalls": "off", | ||
"noInvalidBuiltinInstantiation": "off", | ||
"noInvalidConstructorSuper": "off", | ||
"noNewSymbol": "off", | ||
"noSetterReturn": "off", | ||
"noUndeclaredVariables": "off", | ||
"noUnreachable": "off", | ||
"noUnreachableSuper": "off" | ||
}, | ||
"style": { "noArguments": "error", "noVar": "error", "useConst": "error" }, | ||
"suspicious": { | ||
"noClassAssign": "off", | ||
"noDuplicateClassMembers": "off", | ||
"noDuplicateObjectKeys": "off", | ||
"noDuplicateParameters": "off", | ||
"noFunctionAssign": "off", | ||
"noImportAssign": "off", | ||
"noRedeclare": "off", | ||
"noUnsafeNegation": "off", | ||
"useGetterReturn": "off" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"include": ["**/*.{ts,tsx}"], | ||
"linter": { | ||
"rules": { | ||
"complexity": { "noUselessThisAlias": "error", "noUselessTypeConstraint": "error" }, | ||
"correctness": { "noUnusedVariables": "error", "useArrayLiterals": "off" }, | ||
"style": { "noNamespace": "error", "useAsConstAssertion": "error" }, | ||
"suspicious": { | ||
"noExplicitAny": "error", | ||
"noExtraNonNullAssertion": "error", | ||
"noMisleadingInstantiator": "error", | ||
"noUnsafeDeclarationMerging": "error", | ||
"useNamespaceKeyword": "error" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"include": ["**/*.{ts,tsx}"], | ||
"javascript": { | ||
"globals": [ | ||
"onscrollend", | ||
"onpointerleave", | ||
"oncontextrestored", | ||
"onemptied", | ||
"ongamepaddisconnected", | ||
"onkeypress", | ||
"onloadeddata", | ||
"onmouseup", | ||
"onvolumechange", | ||
"onpaste", | ||
"onstorage", | ||
"onkeyup", | ||
"onabort", | ||
"oncut", | ||
"ontransitionrun", | ||
"onafterprint", | ||
"onblur", | ||
"ondurationchange", | ||
"ontransitionstart", | ||
"oncanplaythrough", | ||
"onanimationend", | ||
"onmouseleave", | ||
"ondragleave", | ||
"onplay", | ||
"onunhandledrejection", | ||
"onbeforeprint", | ||
"onpointercancel", | ||
"onsubmit", | ||
"ondragstart", | ||
"onmessage", | ||
"location", | ||
"onoffline", | ||
"onappinstalled", | ||
"onwheel", | ||
"onended", | ||
"onkeydown", | ||
"onclick", | ||
"onfocus", | ||
"onscroll", | ||
"ongamepadconnected", | ||
"oncanplay", | ||
"onpointerdown", | ||
"ondeviceorientationabsolute", | ||
"onauxclick", | ||
"ondevicemotion", | ||
"onratechange", | ||
"ontransitionend", | ||
"onscrollsnapchanging", | ||
"onchange", | ||
"onselect", | ||
"onbeforeinstallprompt", | ||
"onbeforetoggle", | ||
"onmouseout", | ||
"ontimeupdate", | ||
"ondragover", | ||
"oncuechange", | ||
"ontransitioncancel", | ||
"onprogress", | ||
"onbeforeinput", | ||
"onpointerenter", | ||
"onmouseenter", | ||
"oninvalid", | ||
"onpointerout", | ||
"onpagereveal", | ||
"onpause", | ||
"onanimationstart", | ||
"onwaiting", | ||
"onscrollsnapchange", | ||
"ondeviceorientation", | ||
"onclose", | ||
"onbeforeunload", | ||
"oncancel", | ||
"onseeked", | ||
"onpointerover", | ||
"ongotpointercapture", | ||
"onloadedmetadata", | ||
"onpageshow", | ||
"onstalled", | ||
"oncontextmenu", | ||
"onreset", | ||
"ondrag", | ||
"onbeforematch", | ||
"onload", | ||
"onlostpointercapture", | ||
"onsuspend", | ||
"onselectionchange", | ||
"onpagehide", | ||
"onrejectionhandled", | ||
"onunload", | ||
"onanimationcancel", | ||
"onmousedown", | ||
"onpointerup", | ||
"onmouseover", | ||
"onformdata", | ||
"oncontentvisibilityautostatechange", | ||
"onresize", | ||
"onsearch", | ||
"ontoggle", | ||
"onpageswap", | ||
"onbeforexrselect", | ||
"onlanguagechange", | ||
"ondragenter", | ||
"onerror", | ||
"onpointermove", | ||
"onmousemove", | ||
"ondrop", | ||
"onhashchange", | ||
"onsecuritypolicyviolation", | ||
"onslotchange", | ||
"oncopy", | ||
"onanimationiteration", | ||
"ondblclick", | ||
"ondragend", | ||
"onpointerrawupdate", | ||
"onpopstate", | ||
"onplaying", | ||
"oncontextlost", | ||
"onloadstart", | ||
"onseeking", | ||
"oninput", | ||
"onmessageerror", | ||
"onselectstart", | ||
"onmousewheel", | ||
"ononline" | ||
] | ||
}, | ||
"linter": { "rules": { "correctness": { "useExhaustiveDependencies": "warn", "useHookAtTopLevel": "error" } } } | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ | |
"lib": "@/lib", | ||
"hooks": "@/hooks" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ export default { | |
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
}; |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
this was migrated from the eslint setup in the apps/events package