Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 23
check-latest: true
- name: set up react 19
if: matrix.react == 19
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.js
*.json
*.css
/website/routeTree.gen.ts
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"[javascript][json][jsonc]": {
"[javascript][json][jsonc][css]": {
"editor.defaultFormatter": "biomejs.biome"
},
"typescript.enablePromptUseWorkspaceTsdk": true,
Expand Down
65 changes: 57 additions & 8 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@
}
},
"css": {
"linter": {
"enabled": false
},
"formatter": {
"enabled": false,
"indentStyle": "space"
"quoteStyle": "single"
}
},
"linter": {
Expand All @@ -48,6 +44,7 @@
"noDistractingElements": "warn",
"noHeaderScope": "warn",
"noInteractiveElementToNoninteractiveRole": "warn",
"noLabelWithoutControl": "off",
"noNoninteractiveElementToInteractiveRole": "warn",
"noNoninteractiveTabindex": "warn",
"noPositiveTabindex": "warn",
Expand All @@ -59,12 +56,15 @@
"useAriaActivedescendantWithTabindex": "warn",
"useAriaPropsForRole": "warn",
"useButtonType": "warn",
"useFocusableInteractive": "off",
"useGenericFontNames": "warn",
"useHeadingContent": "warn",
"useHtmlLang": "warn",
"useIframeTitle": "warn",
"useKeyWithClickEvents": "off",
"useKeyWithMouseEvents": "warn",
"useMediaCaption": "off",
"useSemanticElements": "off",
"useValidAnchor": "warn",
"useValidAriaProps": "warn",
"useValidAriaRole": "warn",
Expand All @@ -88,13 +88,16 @@
"noUselessLabel": "warn",
"noUselessLoneBlockStatements": "warn",
"noUselessRename": "warn",
"noUselessStringConcat": "warn",
"noUselessSwitchCase": "warn",
"noUselessTernary": "warn",
"noUselessThisAlias": "warn",
"noUselessTypeConstraint": "warn",
"noUselessUndefinedInitialization": "warn",
"noVoid": "warn",
"noWith": "warn",
"useArrowFunction": "warn",
"useDateNow": "warn",
"useFlatMap": "warn",
"useLiteralKeys": "warn",
"useOptionalChain": "warn",
Expand All @@ -113,24 +116,35 @@
"noFlatMapIdentity": "warn",
"noGlobalObjectCalls": "warn",
"noInnerDeclarations": "warn",
"noInvalidBuiltinInstantiation": "warn",
"noInvalidConstructorSuper": "warn",
"noInvalidDirectionInLinearGradient": "warn",
"noInvalidGridAreas": "warn",
"noInvalidNewBuiltin": "warn",
"noInvalidPositionAtImportRule": "warn",
"noInvalidUseBeforeDeclaration": "warn",
"noNewSymbol": "warn",
"noNodejsModules": "off",
"noNodejsModules": "warn",
"noNonoctalDecimalEscape": "warn",
"noPrecisionLoss": "warn",
"noRenderReturnValue": "warn",
"noSelfAssign": "warn",
"noSetterReturn": "warn",
"noStringCaseMismatch": "warn",
"noSwitchDeclarations": "warn",
"noUndeclaredDependencies": "warn",
"noUndeclaredVariables": "off",
"noUnknownFunction": "warn",
"noUnknownMediaFeatureName": "warn",
"noUnknownProperty": "warn",
"noUnknownUnit": "warn",
"noUnmatchableAnbSelector": "warn",
"noUnnecessaryContinue": "warn",
"noUnreachable": "warn",
"noUnreachableSuper": "warn",
"noUnsafeFinally": "warn",
"noUnsafeOptionalChaining": "warn",
"noUnusedFunctionParameters": "off",
"noUnusedImports": "warn",
"noUnusedLabels": "warn",
"noUnusedPrivateClassMembers": "warn",
Expand All @@ -140,6 +154,7 @@
"useArrayLiterals": "warn",
"useExhaustiveDependencies": "off",
"useHookAtTopLevel": "warn",
"useImportExtensions": "off",
"useIsNan": "warn",
"useJsxKeyInIterable": "off",
"useValidForDirection": "warn",
Expand All @@ -149,7 +164,8 @@
"noAccumulatingSpread": "warn",
"noBarrelFile": "off",
"noDelete": "warn",
"noReExportAll": "off"
"noReExportAll": "off",
"useTopLevelRegex": "warn"
},
"security": {
"noDangerouslySetInnerHtml": "warn",
Expand All @@ -160,6 +176,7 @@
"noArguments": "warn",
"noCommaOperator": "warn",
"noDefaultExport": "off",
"noDoneCallback": "warn",
"noImplicitBoolean": "off",
"noInferrableTypes": "warn",
"noNamespace": "warn",
Expand All @@ -173,13 +190,17 @@
"noUnusedTemplateLiteral": "warn",
"noUselessElse": "warn",
"noVar": "warn",
"noYodaExpression": "warn",
"useAsConstAssertion": "warn",
"useBlockStatements": "off",
"useCollapsedElseIf": "warn",
"useConsistentArrayType": "warn",
"useConsistentBuiltinInstantiation": "warn",
"useConst": "warn",
"useDefaultParameterLast": "off",
"useDefaultSwitchClause": "warn",
"useEnumInitializers": "warn",
"useExplicitLengthCheck": "off",
"useExponentiationOperator": "warn",
"useExportType": "warn",
"useFilenamingConvention": "off",
Expand All @@ -199,32 +220,40 @@
"useSingleCaseStatement": "off",
"useSingleVarDeclarator": "warn",
"useTemplate": "warn",
"useThrowNewError": "warn",
"useThrowOnlyError": "warn",
"useWhile": "warn"
},
"suspicious": {
"noApproximativeNumericConstant": "warn",
"noArrayIndexKey": "off",
"noAssignInExpressions": "off",
"noAssignInExpressions": "warn",
"noAsyncPromiseExecutor": "warn",
"noCatchAssign": "warn",
"noClassAssign": "warn",
"noCommentText": "warn",
"noCompareNegZero": "warn",
"noConfusingLabels": "warn",
"noConfusingVoidType": "warn",
"noConsole": "warn",
"noConsoleLog": "warn",
"noConstEnum": "warn",
"noControlCharactersInRegex": "warn",
"noDebugger": "warn",
"noDoubleEquals": "warn",
"noDuplicateAtImportRules": "warn",
"noDuplicateCase": "warn",
"noDuplicateClassMembers": "warn",
"noDuplicateFontNames": "warn",
"noDuplicateJsxProps": "warn",
"noDuplicateObjectKeys": "warn",
"noDuplicateParameters": "warn",
"noDuplicateSelectorsKeyframeBlock": "warn",
"noDuplicateTestHooks": "warn",
"noEmptyBlock": "warn",
"noEmptyBlockStatements": "off",
"noEmptyInterface": "warn",
"noEvolvingTypes": "off",
"noExplicitAny": "off",
"noExportsInTest": "warn",
"noExtraNonNullAssertion": "warn",
Expand All @@ -236,15 +265,19 @@
"noGlobalIsNan": "warn",
"noImplicitAnyLet": "off",
"noImportAssign": "warn",
"noImportantInKeyframe": "warn",
"noLabelVar": "warn",
"noMisleadingCharacterClass": "warn",
"noMisleadingInstantiator": "warn",
"noMisplacedAssertion": "off",
"noMisrefactoredShorthandAssign": "warn",
"noPrototypeBuiltins": "warn",
"noReactSpecificProps": "off",
"noRedeclare": "warn",
"noRedundantUseStrict": "warn",
"noSelfCompare": "warn",
"noShadowRestrictedNames": "warn",
"noShorthandPropertyOverrides": "warn",
"noSkippedTests": "warn",
"noSparseArray": "warn",
"noSuspiciousSemicolonInJsx": "warn",
Expand All @@ -253,9 +286,11 @@
"noUnsafeNegation": "warn",
"useAwait": "warn",
"useDefaultSwitchClauseLast": "warn",
"useErrorMessage": "warn",
"useGetterReturn": "warn",
"useIsArray": "warn",
"useNamespaceKeyword": "warn",
"useNumberToFixedDigitsArgument": "warn",
"useValidTypeof": "warn"
}
}
Expand All @@ -264,11 +299,25 @@
"enabled": false
},
"overrides": [
{
"include": ["**/*.test.*"],
"linter": {
"rules": {
"performance": {
"useTopLevelRegex": "off"
}
}
}
},
{
"include": ["**/*.js"],
"linter": {
"rules": {
"correctness": {
"noNodejsModules": "off"
},
"suspicious": {
"noConsole": "off",
"noConsoleLog": "off"
}
}
Expand Down
21 changes: 19 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import tsParser from '@typescript-eslint/parser';
import vitest from '@vitest/eslint-plugin';
import jestDom from 'eslint-plugin-jest-dom';
import react from 'eslint-plugin-react';
import reactCompiler from 'eslint-plugin-react-compiler';
import reactHooks from 'eslint-plugin-react-hooks';
import reactHooksExtra from 'eslint-plugin-react-hooks-extra';
import sonarjs from 'eslint-plugin-sonarjs';
import testingLibrary from 'eslint-plugin-testing-library';

Expand All @@ -18,7 +20,9 @@ export default [

plugins: {
react,
'react-compiler': reactCompiler,
'react-hooks': fixupPluginRules(reactHooks),
'react-hooks-extra': reactHooksExtra,
sonarjs,
'@typescript-eslint': typescriptEslint
},
Expand Down Expand Up @@ -371,11 +375,22 @@ export default [
'react/style-prop-object': 0,
'react/void-dom-elements-no-children': 1,

// React Compiler
// https://react.dev/learn/react-compiler#installing-eslint-plugin-react-compiler
'react-compiler/react-compiler': 1,

// React Hooks
// https://www.npmjs.com/package/eslint-plugin-react-hooks
'react-hooks/rules-of-hooks': 1,
'react-hooks/exhaustive-deps': 1,

// React Hooks Extra
// https://eslint-react.xyz/
'react-hooks-extra/no-redundant-custom-hook': 1,
'react-hooks-extra/no-unnecessary-use-callback': 1,
'react-hooks-extra/no-unnecessary-use-memo': 1,
'react-hooks-extra/prefer-use-state-lazy-initialization': 1,

// SonarJS rules
// https://github.com/SonarSource/eslint-plugin-sonarjs#rules
'sonarjs/no-all-duplicated-branches': 1,
Expand Down Expand Up @@ -467,13 +482,14 @@ export default [
'@typescript-eslint/no-this-alias': 0,
'@typescript-eslint/no-type-alias': 0,
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 1,
'@typescript-eslint/no-unnecessary-condition': 1,
'@typescript-eslint/no-unnecessary-condition': [1, { checkTypePredicates: true }],
'@typescript-eslint/no-unnecessary-parameter-property-assignment': 1,
'@typescript-eslint/no-unnecessary-qualifier': 0,
'@typescript-eslint/no-unnecessary-template-expression': 1,
'@typescript-eslint/no-unnecessary-type-arguments': 1,
'@typescript-eslint/no-unnecessary-type-assertion': 1,
'@typescript-eslint/no-unnecessary-type-constraint': 1,
'@typescript-eslint/no-unnecessary-type-parameters': 1,
'@typescript-eslint/no-unsafe-argument': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-call': 0,
Expand Down Expand Up @@ -587,7 +603,7 @@ export default [
plugins: {
vitest,
'jest-dom': jestDom,
'testing-library': fixupPluginRules(testingLibrary)
'testing-library': testingLibrary
},

rules: {
Expand Down Expand Up @@ -647,6 +663,7 @@ export default [
'vitest/prefer-to-contain': 1,
'vitest/prefer-to-have-length': 1,
'vitest/prefer-todo': 1,
'vitest/prefer-vi-mocked': 1,
'vitest/require-hook': 0,
'vitest/require-local-test-context-for-concurrent-snapshots': 0,
'vitest/require-to-throw-message': 0,
Expand Down
27 changes: 15 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,37 +61,40 @@
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.21.5",
"@biomejs/biome": "1.8.3",
"@eslint/compat": "^1.1.1",
"@biomejs/biome": "1.9.4",
"@eslint/compat": "^1.2.2",
"@faker-js/faker": "^9.0.0",
"@ianvs/prettier-plugin-sort-imports": "^4.0.2",
"@linaria/core": "^6.0.0",
"@microsoft/api-extractor": "^7.23.0",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.1.0",
"@tanstack/react-router": "^1.57.13",
"@tanstack/router-plugin": "^1.57.13",
"@tanstack/react-router": "^1.70.0",
"@tanstack/router-plugin": "^1.69.1",
"@testing-library/dom": "^10.1.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^22.0.0",
"@types/react": "^18.3.9",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/browser": "^2.1.1",
"@vitest/coverage-v8": "^2.1.1",
"@vitest/eslint-plugin": "^1.1.4",
"@vitest/eslint-plugin": "^1.1.8",
"@wyw-in-js/rollup": "^0.5.0",
"@wyw-in-js/vite": "^0.5.0",
"babel-plugin-optimize-clsx": "^2.6.2",
"eslint": "^9.11.1",
"browserslist": "^4.24.0",
"eslint": "^9.14.0",
"eslint-plugin-jest-dom": "^5.0.1",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-sonarjs": "^2.0.2",
"eslint-plugin-testing-library": "^6.3.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-compiler": "^19.0.0-beta-a7bf2bd-20241110",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-hooks-extra": "^1.16.1",
"eslint-plugin-sonarjs": "^2.0.4",
"eslint-plugin-testing-library": "^6.4.0",
"jspdf": "^2.5.1",
"jspdf-autotable": "^3.5.23",
"playwright": "^1.45.1",
Expand Down
Loading