Skip to content

Commit b50167c

Browse files
authored
Merge pull request #25 from kinde-oss/chore/prettier
chore: prettier
2 parents 448b545 + 31eabd1 commit b50167c

File tree

20 files changed

+102
-89
lines changed

20 files changed

+102
-89
lines changed

.prettierrc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"useTabs": true,
3-
"singleQuote": true,
4-
"trailingComma": "none",
5-
"bracketSpacing": false,
6-
"proseWrap": "never",
7-
"printWidth": 100,
8-
"plugins": ["prettier-plugin-svelte"],
9-
"pluginSearchDirs": ["."],
10-
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"bracketSpacing": false,
6+
"proseWrap": "never",
7+
"printWidth": 100,
8+
"plugins": ["prettier-plugin-svelte"],
9+
"pluginSearchDirs": ["."],
10+
"overrides": [{"files": "*.svelte", "options": {"parser": "svelte"}}]
1111
}

.release-it.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"git": {
3+
"requireBranch": "main",
4+
"commitMessage": "chore: release v${version}"
5+
},
6+
"hooks": {
7+
"before:init": ["git pull", "npm run lint"],
8+
"after:bump": "npx auto-changelog -p && npm run build"
9+
},
10+
"github": {
11+
"release": true
12+
},
13+
"npm": {
14+
"publish": true
15+
}
16+
}

.vscode/extensions.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"recommendations": [
3-
"yzhang.markdown-all-in-one",
4-
"editorconfig.editorconfig",
5-
"esbenp.prettier-vscode"
6-
]
2+
"recommendations": [
3+
"yzhang.markdown-all-in-one",
4+
"editorconfig.editorconfig",
5+
"esbenp.prettier-vscode"
6+
]
77
}

.vscode/settings.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"editor.defaultFormatter": "esbenp.prettier-vscode",
3-
"editor.codeActionsOnSave": {
4-
"source.fixAll": "explicit"
5-
},
6-
"editor.formatOnSave": true,
7-
"files.trimTrailingWhitespace": true,
8-
"markdown.extension.italic.indicator": "_",
9-
"markdown.extension.toc.unorderedList.marker": "-",
10-
"markdown.extension.toc.slugifyMode": "github",
11-
"markdown.preview.fontFamily": "system-ui, -apple-system, sans-serif",
12-
"files.associations": {
13-
"CODEOWNERS": "ini"
14-
}
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.codeActionsOnSave": {
4+
"source.fixAll": "explicit"
5+
},
6+
"editor.formatOnSave": true,
7+
"files.trimTrailingWhitespace": true,
8+
"markdown.extension.italic.indicator": "_",
9+
"markdown.extension.toc.unorderedList.marker": "-",
10+
"markdown.extension.toc.slugifyMode": "github",
11+
"markdown.preview.fontFamily": "system-ui, -apple-system, sans-serif",
12+
"files.associations": {
13+
"CODEOWNERS": "ini"
14+
}
1515
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The Kinde SDK for SvelteKit.
44

5-
[![PRs - Welcome](https://img.shields.io/badge/PRs-Welcome-green?style=for-the-badge)](https://kinde.com/docs/developer-tools) [![Kinde - Docs](https://img.shields.io/badge/Kinde-Docs-white?style=for-the-badge)]([https://kinde.com/docs/developer-tools](https://kinde.com/docs/developer-tools/sveltekit-sdk/)) [![Kinde Community](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://join.slack.com/t/thekindecommunity/shared_invite/zt-26hdaavyc-CfOa06vP23guSwK~~OpFMQ) [![Discord](https://img.shields.io/badge/Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/wHX6j7wG5d)
5+
[![PRs - Welcome](https://img.shields.io/badge/PRs-Welcome-green?style=for-the-badge)](https://kinde.com/docs/developer-tools) [![Kinde - Docs](https://img.shields.io/badge/Kinde-Docs-white?style=for-the-badge)](<[https://kinde.com/docs/developer-tools](https://kinde.com/docs/developer-tools/sveltekit-sdk/)>) [![Kinde Community](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://join.slack.com/t/thekindecommunity/shared_invite/zt-26hdaavyc-CfOa06vP23guSwK~~OpFMQ) [![Discord](https://img.shields.io/badge/Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/wHX6j7wG5d)
66

77
## Development
88

@@ -40,7 +40,7 @@ npm run build
4040

4141
```bash
4242
npm pack <path-to-sdk-folder>
43-
// e.g
43+
// e.g.
4444
npm pack ~/Documents/Projects/kinde-sveltekit-sdk
4545
```
4646

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PlaywrightTestConfig } from '@playwright/test';
1+
import type {PlaywrightTestConfig} from '@playwright/test';
22

33
const config: PlaywrightTestConfig = {
44
webServer: {

src/app.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sessionStorage } from '$lib/sessionStorage/index.js';
1+
import {sessionStorage} from '$lib/sessionStorage/index.js';
22

33
// See https://kit.svelte.dev/docs/types#app
44
// for information about these interfaces

src/hooks.server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { sessionHooks, type Handler } from "$lib/index.js";
1+
import {sessionHooks, type Handler} from '$lib/index.js';
2+
3+
export const handle: Handler = async ({event, resolve}) => {
4+
sessionHooks({event});
25

3-
export const handle: Handler = async ({ event, resolve }) => {
4-
sessionHooks({ event });
5-
66
const response = await resolve(event);
77
return response;
88
};

src/lib/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './config.js'
1+
export * from './config.js';

src/lib/handleAuth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './handleAuth.js'
1+
export * from './handleAuth.js';

0 commit comments

Comments
 (0)