Skip to content

Commit

Permalink
gitignore, biome, vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterStorey committed Oct 3, 2024
1 parent 5f41aa8 commit 1ed0994
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.formatOnType": true,
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
}
}
3 changes: 3 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@rubriclab/config/biome"]
}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"typescript": "^5.0.0"
},
"dependencies": {
"@rubriclab/package": "^0.0.55"
"@rubriclab/package": "*",
"@rubriclab/config": "*"
},
"simple-git-hooks": {
"post-commit": "bun run rubriclab-postcommit"
Expand All @@ -22,6 +23,9 @@
"scripts": {
"prepare": "bun x simple-git-hooks",
"bleed": "bun x npm-check-updates -u && bun i",
"clean": "rm -rf .next && rm -rf node_modules"
"clean": "rm -rf .next && rm -rf node_modules",
"format": "bun x biome format --write .",
"lint": "bun x biome check .",
"lint:fix": "bun x biome lint . --write --unsafe"
}
}
4 changes: 2 additions & 2 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expect, test} from 'bun:test'
import {memory} from '../'
import { expect, test } from 'bun:test'
import { memory } from '../'

test('exports a function', () => {
expect(typeof memory).toBe('function')
Expand Down

0 comments on commit 1ed0994

Please sign in to comment.