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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ package-lock.json
/.idea
.kiro/coverage/
coverage/
nul
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ A TypeScript API library (`@ghosttypes/ff-api`) for controlling FlashForge 3D pr
## Build & Test Commands

- **Build:** `pnpm build` (runs `tsc`, outputs to `dist/`)
- **Test all:** `pnpm test` (Jest with ts-jest)
- **Test single file:** `pnpm exec jest path/to/file.test.ts`
- **Test all:** `pnpm test` (Vitest)
- **Test single file:** `pnpm exec vitest run path/to/file.test.ts`
- **Test watch:** `pnpm test:watch`
- **Test coverage:** `pnpm test:coverage`

Expand Down
91 changes: 91 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 100
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"recommended": true
},
"correctness": {
"recommended": true,
"noUnusedVariables": "error",
"noUnusedImports": "error"
},
"complexity": {
"recommended": true,
"noForEach": "off",
"useLiteralKeys": "off",
"noStaticOnlyClass": "off"
},
"style": {
"recommended": true,
"noParameterAssign": "off",
"useConst": "error",
"useTemplate": "warn",
"noNonNullAssertion": "warn"
},
"suspicious": {
"recommended": true,
"noArrayIndexKey": "warn",
"noExplicitAny": "warn",
"noEmptyBlockStatements": "warn",
"noImplicitAnyLet": "warn"
},
"performance": {
"recommended": true
},
"security": {
"recommended": true
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false
}
},
"json": {
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
}
},
"overrides": [
{
"includes": ["*.test.ts", "**/*.test.ts"],
"linter": {
"rules": {
"suspicious": {
"noExplicitAny": "off"
}
}
}
}
]
}
Loading