Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tests-and-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: cd apps/server && pnpm prisma generate
- name: Typecheck
run: pnpm ts:check
- name: Linting
run: pnpm lint
- name: Linting & Formatting
run: pnpm check
- name: Test
run: pnpm test
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
46 changes: 46 additions & 0 deletions .vscode/settings.json
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"
}
}
251 changes: 251 additions & 0 deletions apps/events/biome.jsonc
Copy link
Collaborator Author

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

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" } } }
}
]
}
2 changes: 1 addition & 1 deletion apps/events/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"lib": "@/lib",
"hooks": "@/hooks"
}
}
}
28 changes: 0 additions & 28 deletions apps/events/eslint.config.js

This file was deleted.

14 changes: 7 additions & 7 deletions apps/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
"scripts": {
"dev": "vite --force",
"build": "tsc -b && vite build",
"lint": "eslint .",
"lint": "pnpm biome lint src/*",
"lint:fix": "pnpm biome lint --write src/*",
"format": "pnpm biome format src/*",
"format:fix": "pnpm biome format --write src/*",
"check": "pnpm biome check src/*",
"check:fix": "pnpm biome check --write src/*",
"preview": "vite preview",
"test": "vitest run",
"ts:check": "tsc --noEmit"
Expand Down Expand Up @@ -36,7 +41,7 @@
"vite-plugin-node-polyfills": "^0.22.0"
},
"devDependencies": {
"@eslint/js": "^9.12.0",
"@biomejs/biome": "1.9.4",
"@tanstack/router-devtools": "^1.62.1",
"@tanstack/router-plugin": "^1.62.0",
"@types/node": "^22.7.4",
Expand All @@ -45,14 +50,9 @@
"@types/uuid": "^10.0.0",
"@vitejs/plugin-react": "^4.3.2",
"autoprefixer": "^10.4.20",
"eslint": "^9.12.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.10.0",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
"typescript": "^5.5.3",
"typescript-eslint": "^8.8.0",
"vite-plugin-top-level-await": "^1.4.4",
"vite-plugin-wasm": "^3.3.0"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/events/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export default {
tailwindcss: {},
autoprefixer: {},
},
}
};
Loading
Loading