Files
better-auth/biome.json
Jumpei Ogawa 40cefe99b1 chore(example): fix SvelteKit example (#1742)
* refactor: upgrade Svelte, Vite and related packages

* refactor: replace no longer supported `body.callbackURL` with `onSuccess`

* fix: add missing `svelte-kit sync` on `prepare`

* fix: add missing `import`s

* chore(svelte-kit-example): show message & redirect to index after sign up

* chore: add npm script to migrate database

* doc: add more commands to set up

* chore: explicitly disable verification email on sign up

The example does not work if you set `sendOnSignUp: true` without setting up the email server.

* refactor(svelte-kit-example): add type for hooks

* chore(svelte-kit-example): redirect to sign in page if users open dashboard without log in

* chore: diable some rules for svelte-kit-example due to Biome's limited Svelte support

* style: fix format

* chore: update pnpm-lock.yaml

* chore: fix lock file

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-25 13:32:17 -07:00

59 lines
942 B
JSON

{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"suspicious": {
"noImplicitAnyLet": "warn",
"noDuplicateObjectKeys": "warn"
},
"performance": {
"noDelete": "error"
},
"complexity": {
"noUselessSwitchCase": "warn",
"noUselessTypeConstraint": "warn"
},
"correctness": {
"noUnusedImports": "warn"
}
}
},
"overrides": [
{
"include": ["examples/svelte-kit-example/**"],
"linter": {
"rules": {
"correctness": {
"noUnusedImports": "off"
}
}
}
}
],
"files": {
"ignore": [
"dist",
"build",
".next",
".svelte-kit",
"package.json",
".contentlayer",
".turbo",
".nuxt",
".source",
".expo",
".cache",
"dev/cloudflare/drizzle"
]
}
}