Skip to content

Commit

Permalink
chore(deps): adopt biome
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Aug 10, 2024
1 parent 21de9a9 commit 78042db
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 772 deletions.
4 changes: 4 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"extends": ["node_modules/@naturalcycles/dev-lib/cfg/biome.jsonc"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@naturalcycles/nodejs-lib": "^13.1.0"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@naturalcycles/dev-lib": "^15.2.0",
"@types/node": "^22.0.0",
"jest": "^29.0.3"
Expand Down
2 changes: 1 addition & 1 deletion scripts/oom.script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ runScript(async () => {
// This is a "no-op" consumer that just discards the data
new Writable({
objectMode: true,
write(c, _encoding, cb) {
write(_c, _encoding, cb) {
// console.log(c.id, c.data.length)
cb()
},
Expand Down
3 changes: 1 addition & 2 deletions scripts/pipe.script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ runScript(async () => {
if (v === 'c') {
// cb(new Error('oopsie from writable'))
throw new Error('oopsie from writable')
} else {
cb()
}
cb()
},
}),
)
Expand Down
2 changes: 1 addition & 1 deletion src/test/datastoreKeyValueDB.manual.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ process.env['APP_ENV'] = 'master'

const credentials = JSON.parse(SECRET_GCP_SERVICE_ACCOUNT)

export const db = new DatastoreKeyValueDB({
const db = new DatastoreKeyValueDB({
credentials,
})

Expand Down
Loading

0 comments on commit 78042db

Please sign in to comment.