Skip to content

Commit

Permalink
switch to biome in the js sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
wandbjake committed Dec 13, 2024
1 parent c964e3f commit aeb89d8
Show file tree
Hide file tree
Showing 6 changed files with 194 additions and 305 deletions.
16 changes: 0 additions & 16 deletions sdks/node/.prettierrc

This file was deleted.

35 changes: 35 additions & 0 deletions sdks/node/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingCommas": "es5",
"bracketSpacing": false,
"bracketSameLine": true,
"arrowParentheses": "asNeeded"
}
}
}
9 changes: 5 additions & 4 deletions sdks/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "jest --silent",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"format": "prettier --write \"src/**/*.ts\" \"examples/**/*.ts\"",
"format": "biome format --write src/ examples/",
"run": "tsx",
"generate-api": "swagger-typescript-api -p ./weave.openapi.json -o ./src/generated -n traceServerApi.ts",
"dev": "nodemon"
Expand Down Expand Up @@ -87,18 +87,19 @@
"uuidv7": "^1.0.1"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/cli-progress": "^3.11.6",
"@types/jest": "^29.5.13",
"@types/node": "^22.5.1",
"jest": "^29.7.0",
"nyc": "^17.1.0",
"prettier": "^3.3.3",
"source-map-support": "^0.5.21",
"swagger-typescript-api": "^13.0.22",
"ts-jest": "^29.2.5",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.19.1",
"typedoc": "^0.26.10",
"typedoc-plugin-markdown": "^4.2.9"
"typedoc": "^0.27.4",
"typedoc-plugin-markdown": "^4.3.2",
"typescript": "^5.7.2"
}
}
Loading

0 comments on commit aeb89d8

Please sign in to comment.