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
30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@ jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
# run_install: true

- name: Installing deps
run: pnpm install
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"

- name: Building
run: pnpm run build
- name: Installing deps
run: pnpm install

- name: Testing
run: pnpm run test:CI
- name: Building
run: pnpm run build

- name: Testing
run: pnpm run test:CI
203 changes: 37 additions & 166 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,240 +1,110 @@
{
"$schema": "https://unpkg.com/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": ["node_modules/**/*"]
"includes": ["**", "!**/node_modules/**/*"]
},
"vcs": {
"useIgnoreFile": true
},
"linter": {
"enabled": true,
"ignore": ["node_modules/**/*"],
"includes": ["**", "!**/node_modules/**/*"],
"rules": {
"recommended": true,
"a11y": {
"noAccessKey": "error",
"noAriaHiddenOnFocusable": "off",
"noAriaUnsupportedElements": "error",
"noAutofocus": "error",
"noBlankTarget": "error",
"noDistractingElements": "error",
"noHeaderScope": "error",
"noInteractiveElementToNoninteractiveRole": "error",
"noNoninteractiveElementToInteractiveRole": "error",
"noNoninteractiveTabindex": "error",
"noPositiveTabindex": "error",
"noRedundantAlt": "error",
"noRedundantRoles": "error",
"noSvgWithoutTitle": "error",
"useAltText": "error",
"useAnchorContent": "error",
"useAriaActivedescendantWithTabindex": "error",
"useAriaPropsForRole": "error",
"useButtonType": "error",
"useHeadingContent": "error",
"useHtmlLang": "error",
"useIframeTitle": "warn",
"useKeyWithClickEvents": "warn",
"useKeyWithMouseEvents": "warn",
"useMediaCaption": "error",
"useValidAnchor": "error",
"useValidAriaProps": "error",
"useValidAriaRole": "error",
"useValidAriaValues": "error",
"useValidLang": "error"
"useKeyWithMouseEvents": "warn"
},
"complexity": {
"noBannedTypes": "error",
"noExcessiveCognitiveComplexity": "error",
"noExtraBooleanCast": "error",
"noForEach": "error",
"noMultipleSpacesInRegularExpressionLiterals": "warn",
"noStaticOnlyClass": "error",
"noThisInStatic": "error",
"noUselessCatch": "error",
"noUselessConstructor": "error",
"noUselessEmptyExport": "error",
"noUselessFragments": "error",
"noUselessLabel": "error",
"noUselessRename": "error",
"noUselessSwitchCase": "error",
"noUselessThisAlias": "error",
"noUselessTypeConstraint": "error",
"noVoid": "off",
"noWith": "error",
"useArrowFunction": "error",
"useFlatMap": "error",
"useLiteralKeys": "error",
"useOptionalChain": "warn",
"useRegexLiterals": "error",
"useSimpleNumberKeys": "error",
"useSimplifiedLogicExpression": "error"
"useSimplifiedLogicExpression": "error",
"noArguments": "error",
"useNumericLiterals": "error",
"useWhile": "error"
},
"correctness": {
"noChildrenProp": "error",
"noConstantCondition": "error",
"noConstAssign": "error",
"noConstructorReturn": "error",
"noEmptyCharacterClassInRegex": "error",
"noEmptyPattern": "error",
"noGlobalObjectCalls": "error",
"noInnerDeclarations": "error",
"noInvalidConstructorSuper": "error",
"noInvalidNewBuiltin": "error",
"noNewSymbol": "error",
"noNonoctalDecimalEscape": "error",
"noPrecisionLoss": "error",
"noRenderReturnValue": "error",
"noSelfAssign": "error",
"noSetterReturn": "error",
"noStringCaseMismatch": "error",
"noSwitchDeclarations": "error",
"noConstantMathMinMaxClamp": "error",
"noNodejsModules": "off",
"noUndeclaredDependencies": "off",
"noUndeclaredVariables": "error",
"noUnnecessaryContinue": "error",
"noUnreachable": "error",
"noUnreachableSuper": "error",
"noUnsafeFinally": "error",
"noUnsafeOptionalChaining": "error",
"noUnusedLabels": "error",
"noUnusedFunctionParameters": "error",
"noUnusedImports": "error",
"noUnusedPrivateClassMembers": "error",
"noUnusedVariables": "error",
"noVoidElementsWithChildren": "error",
"noVoidTypeReturn": "error",
"useExhaustiveDependencies": "error",
"useHookAtTopLevel": "error",
"useIsNan": "error",
"useValidForDirection": "error",
"useYield": "error"
"noInvalidBuiltinInstantiation": "error",
"noSwitchDeclarations": "error"
},
"performance": {
"noAccumulatingSpread": "error",
"noDelete": "off"
"useTopLevelRegex": "error"
},
"security": {
"noDangerouslySetInnerHtml": "error",
"noDangerouslySetInnerHtmlWithChildren": "error"
"noGlobalEval": "off"
},
"style": {
"noArguments": "error",
"noCommaOperator": "off",
"noDefaultExport": "off",
"noImplicitBoolean": "off",
"noImplicitBoolean": "error",
"noInferrableTypes": "error",
"noNamespace": "error",
"noNegationElse": "error",
"noNonNullAssertion": "off",
"noParameterAssign": "off",
"noParameterProperties": "off",
"noRestrictedGlobals": "error",
"noShoutyConstants": "error",
"noUnusedTemplateLiteral": "error",
"noUselessElse": "error",
"noVar": "error",
"noYodaExpression": "error",
"useAsConstAssertion": "error",
"useBlockStatements": "error",
"useCollapsedElseIf": "error",
"useConsistentArrayType": "error",
"useConsistentBuiltinInstantiation": "error",
"useConst": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useExponentiationOperator": "error",
"useExportType": "error",
"useFragmentSyntax": "error",
"useForOf": "warn",
"useImportType": "error",
"useLiteralEnumMembers": "error",
"useNamingConvention": "off",
"useNumericLiterals": "error",
"useNodejsImportProtocol": "warn",
"useNumberNamespace": "error",
"useSelfClosingElements": "error",
"useShorthandArrayType": "error",
"useShorthandAssign": "error",
"useSingleCaseStatement": "error",
"useShorthandFunctionType": "warn",
"useSingleVarDeclarator": "error",
"useTemplate": "off",
"useWhile": "error"
"useArrayLiterals": "error"
},
"suspicious": {
"noApproximativeNumericConstant": "error",
"noArrayIndexKey": "error",
"noAssignInExpressions": "error",
"noAsyncPromiseExecutor": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCommentText": "error",
"noCompareNegZero": "error",
"noConfusingLabels": "error",
"noConfusingVoidType": "error",
"noConsoleLog": "warn",
"noConstEnum": "off",
"noControlCharactersInRegex": "error",
"noDebugger": "off",
"noDoubleEquals": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateJsxProps": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyInterface": "error",
"noEmptyBlockStatements": "error",
"noExplicitAny": "warn",
"noExtraNonNullAssertion": "error",
"noFallthroughSwitchClause": "error",
"noFunctionAssign": "error",
"noGlobalIsFinite": "error",
"noGlobalIsNan": "error",
"noImplicitAnyLet": "off",
"noImportAssign": "error",
"noLabelVar": "error",
"noMisleadingInstantiator": "error",
"noMisrefactoredShorthandAssign": "off",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noRedundantUseStrict": "error",
"noSelfCompare": "off",
"noShadowRestrictedNames": "error",
"noSparseArray": "off",
"noUnsafeDeclarationMerging": "error",
"noUnsafeNegation": "error",
"useDefaultSwitchClauseLast": "error",
"useGetterReturn": "error",
"useIsArray": "error",
"useNamespaceKeyword": "error",
"useValidTypeof": "error"
},
"nursery": {
"noDuplicateJsonKeys": "off",
"noEmptyBlockStatements": "error",
"noEmptyTypeParameters": "error",
"noGlobalEval": "off",
"noGlobalAssign": "error",
"noInvalidUseBeforeDeclaration": "error",
"noMisleadingCharacterClass": "error",
"noNodejsModules": "off",
"noThenProperty": "warn",
"noUnusedImports": "error",
"noUnusedPrivateClassMembers": "error",
"noUselessLoneBlockStatements": "error",
"noUselessTernary": "error",
"useAwait": "error",
"useConsistentArrayType": "error",
"useExportType": "error",
"useFilenamingConvention": "off",
"useForOf": "warn",
"useGroupedTypeImport": "error",
"useImportRestrictions": "off",
"useImportType": "error",
"useNodejsImportProtocol": "warn",
"useNumberNamespace": "error",
"useShorthandFunctionType": "warn"
"useErrorMessage": "error",
"noVar": "error",
"noConsole": { "level": "warn", "options": { "allow": ["log"] } }
}
}
},
"formatter": {
"enabled": true,
"ignore": ["node_modules/**/*"],
"includes": ["**", "!**/node_modules/**/*"],
"formatWithErrors": false,
"indentWidth": 2,
"indentStyle": "space",
"lineEnding": "lf",
"lineWidth": 80
},
"organizeImports": {
"enabled": true,
"ignore": ["node_modules/**/*"]
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"javascript": {
"formatter": {
"enabled": true,
Expand All @@ -249,7 +119,8 @@
"quoteProperties": "asNeeded",
"quoteStyle": "single",
"semicolons": "always",
"trailingComma": "all"
"trailingCommas": "all",
"expand": "auto"
},
"globals": [],
"parser": {
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,25 @@
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@biomejs/biome": "^1.5.3",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@babel/core": "^7.29.0",
"@biomejs/biome": "^2.4.4",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-typescript": "^12.3.0",
"@types/babel__core": "^7.20.5",
"@types/babel__generator": "^7.6.8",
"@types/node": "^20.11.10",
"babel-preset-solid": "^1.8.12",
"rollup": "^4.9.6",
"solid-js": "^1.8.12",
"@types/babel__generator": "^7.27.0",
"@types/node": "^25.3.0",
"babel-preset-solid": "^1.9.10",
"rollup": "^4.59.0",
"solid-js": "^1.9.11",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vitest": "^1.2.2"
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
"peerDependencies": {
"solid-js": "^1.3"
},
"dependencies": {
"@babel/generator": "^7.23.6",
"@babel/types": "^7.23.6"
"@babel/generator": "^7.29.1",
"@babel/types": "^7.29.0"
}
}
Loading