diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6a581e6 --- /dev/null +++ b/.vscode/settings.json @@ -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" + } +} diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..e8d99dd --- /dev/null +++ b/biome.json @@ -0,0 +1,3 @@ +{ + "extends": ["@rubriclab/config/biome"] +} diff --git a/package.json b/package.json index 621b838..d9d6a8d 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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" } } diff --git a/tests/index.test.ts b/tests/index.test.ts index 5f2860a..b090710 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -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')