Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.
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: 0 additions & 4 deletions .eslintignore

This file was deleted.

45 changes: 0 additions & 45 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
143 changes: 143 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
"files": {
"includes": ["src/**", "test/**", "*.json", "jest.config.ts", "!src/api.ts"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
"expand": "auto",
"useEditorconfig": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"complexity": {
"noAdjacentSpacesInRegex": "error",
"noArguments": "error",
"noCommaOperator": "error",
"noExtraBooleanCast": "error",
"noStaticOnlyClass": "error",
"noUselessConstructor": "error",
"noUselessEscapeInRegex": "error",
"noUselessStringConcat": "error",
"noUselessThisAlias": "error",
"noUselessTypeConstraint": "error",
"useArrowFunction": "error"
},
"correctness": {
"noConstAssign": "error",
"noConstantCondition": "error",
"noEmptyCharacterClassInRegex": "error",
"noEmptyPattern": "error",
"noGlobalObjectCalls": "error",
"noInnerDeclarations": "error",
"noInvalidConstructorSuper": "error",
"noSelfAssign": "error",
"noSwitchDeclarations": "error",
"noUndeclaredVariables": "error",
"noUnreachable": "error",
"noUnreachableSuper": "error",
"noUnsafeFinally": "error",
"noUnusedLabels": "error",
"noUnusedVariables": "error",
"useIsNan": "error",
"useValidTypeof": "error",
"useYield": "error"
},
"nursery": {
"noFloatingPromises": "error",
"noShadow": "error",
"noTsIgnore": "error",
"useConsistentObjectDefinition": "error",
"useUnifiedTypeSignature": "error"
},
"style": {
"noCommonJs": "error",
"noNamespace": "error",
"noNonNullAssertion": "error",
"useArrayLiterals": "error",
"useAsConstAssertion": "error",
"useBlockStatements": "off",
"useConst": "error",
"useLiteralEnumMembers": "error",
"useSingleVarDeclarator": "error",
"useTemplate": "error",
"useThrowOnlyError": "error"
},
"suspicious": {
"noAssignInExpressions": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCompareNegZero": "error",
"noConfusingVoidType": "error",
"noConsole": "off",
"noControlCharactersInRegex": "error",
"noDebugger": "error",
"noDoubleEquals": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyBlockStatements": "error",
"noExplicitAny": "error",
"noExtraNonNullAssertion": "error",
"noFallthroughSwitchClause": "error",
"noFunctionAssign": "error",
"noGlobalAssign": "error",
"noIrregularWhitespace": "error",
"noMisleadingInstantiator": "error",
"noRedeclare": "error",
"noSparseArray": "error",
"noUnsafeDeclarationMerging": "error",
"noUnsafeNegation": "error",
"noVar": "error",
"useNamespaceKeyword": "error"
}
}
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSameLine": false,
"quoteStyle": "double",
"attributePosition": "auto",
"bracketSpacing": true
},
"globals": []
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": {
"level": "on",
"options": {
"groups": [
":NODE:",
":BLANK_LINE:",
":PACKAGE:",
":BLANK_LINE:",
":ALIAS:",
":BLANK_LINE:",
":PATH:"
]
}
}
}
}
}
}
44 changes: 15 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@
"description": "a command line client for octomind apis",
"main": "./dist/index.js",
"packageManager": "pnpm@10.13.1",
"files": [
"dist",
"src",
"README.md",
"LICENSE",
"package.json"
],
"files": ["dist", "src", "README.md", "LICENSE", "package.json"],
"engines": {
"node": ">=20.0.0"
},
Expand All @@ -19,7 +13,7 @@
},
"scripts": {
"gendoc": "tsx scripts/generate-docs.ts > README.md",
"lint": "pnpm apigen &&npx genversion -des src/version.ts && eslint src/**/*.ts tests/**/*.ts --max-warnings=0",
"lint": "pnpm apigen &&npx genversion -des src/version.ts && biome check",
"apigen": "openapi-typescript https://app.octomind.dev/openapi.yaml --output src/api.ts",
"build": "pnpm apigen && npx genversion -des src/version.ts && pnpm gendoc && tsc --project tsconfig.build.json",
"octomind": "pnpm apigen && tsx src/index.ts",
Expand All @@ -30,28 +24,20 @@
"author": "",
"license": "MIT",
"dependencies": {
"@playwright/test": "^1.54.1",
"commander": "^14.0.0",
"openapi-fetch": "^0.14.0",
"otplib": "^12.0.1"
"@playwright/test": "1.54.1",
"commander": "14.0.0",
"openapi-fetch": "0.14.0",
"otplib": "12.0.1"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^24.0.1",
"@typescript-eslint/parser": "^8.25.0",
"eslint": "8.57.1",
"eslint-config-prettier": "^10.0.1",
"eslint-import-resolver-typescript": "^4.0.0",
"eslint-plugin-github": "^5.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^29.0.1",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^30.0.0",
"openapi-typescript": "^7.8.0",
"prettier": "^3.0.1",
"ts-jest": "^29.2.6",
"ts-node": "^10.9.1",
"tsx": "^4.19.3",
"typescript": "^5.0.4"
"@biomejs/biome": "2.1.3",
"@types/jest": "30.0.0",
"@types/node": "24.1.0",
"jest": "30.0.5",
"openapi-typescript": "7.8.0",
"ts-jest": "29.4.0",
"ts-node": "10.9.2",
"tsx": "4.20.3",
"typescript": "5.7.3"
}
}
Loading