Skip to content

Commit 25667cc

Browse files
committed
chore: change tabs -> 2 spaces
1 parent 707d93f commit 25667cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1409
-1410
lines changed

.eslintrc.cjs

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
module.exports = {
2-
root: true,
3-
parser: '@typescript-eslint/parser',
4-
extends: [
5-
'plugin:svelte/recommended',
6-
'plugin:svelte/prettier',
7-
'eslint:recommended',
8-
'plugin:@typescript-eslint/recommended',
9-
'prettier'
10-
],
11-
plugins: ['@typescript-eslint', 'prettier'],
12-
ignorePatterns: ['*.cjs'],
13-
rules: {
14-
'prettier/prettier': 'error',
15-
'@typescript-eslint/no-non-null-assertion': 'off',
16-
'svelte/no-at-html-tags': 'off',
17-
'svelte/html-self-closing': 'off',
18-
},
19-
parserOptions: {
20-
sourceType: 'module',
21-
ecmaVersion: 2020
22-
},
23-
overrides: [
24-
{
25-
files: ['*.svelte'],
26-
parser: 'svelte-eslint-parser',
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
extends: [
5+
'plugin:svelte/recommended',
6+
'plugin:svelte/prettier',
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'prettier'
10+
],
11+
plugins: ['@typescript-eslint', 'prettier'],
12+
ignorePatterns: ['*.cjs'],
13+
rules: {
14+
'prettier/prettier': 'error',
15+
'@typescript-eslint/no-non-null-assertion': 'off',
16+
'svelte/no-at-html-tags': 'off',
17+
'svelte/html-self-closing': 'off'
18+
},
19+
parserOptions: {
20+
sourceType: 'module',
21+
ecmaVersion: 2020
22+
},
23+
overrides: [
24+
{
25+
files: ['*.svelte'],
26+
parser: 'svelte-eslint-parser',
2727

28-
// Parse the `<script>` in `.svelte` as TypeScript by adding the following configuration.
29-
parserOptions: {
30-
parser: '@typescript-eslint/parser'
31-
}
32-
}
33-
],
34-
env: {
35-
browser: true,
36-
es2017: true,
37-
node: true
38-
}
28+
// Parse the `<script>` in `.svelte` as TypeScript by adding the following configuration.
29+
parserOptions: {
30+
parser: '@typescript-eslint/parser'
31+
}
32+
}
33+
],
34+
env: {
35+
browser: true,
36+
es2017: true,
37+
node: true
38+
}
3939
};

.prettierrc

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{
2-
"useTabs": true,
3-
"singleQuote": true,
4-
"trailingComma": "none",
5-
"printWidth": 100,
6-
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
7-
"pluginSearchDirs": ["."],
8-
"overrides": [
9-
{
10-
"files": "*.svelte",
11-
"options": {
12-
"parser": "svelte"
13-
}
14-
}
15-
]
2+
"singleQuote": true,
3+
"printWidth": 160,
4+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
5+
"pluginSearchDirs": ["."],
6+
"overrides": [
7+
{
8+
"files": "*.svelte",
9+
"options": {
10+
"parser": "svelte"
11+
}
12+
}
13+
]
1614
}

mdsvex.config.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ import rehypeSlug from 'rehype-slug';
33
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
44

55
const config = defineMDSveXConfig({
6-
extensions: ['.md', '.svx'],
7-
smartypants: {
8-
dashes: 'oldschool'
9-
},
6+
extensions: ['.md', '.svx'],
7+
smartypants: {
8+
dashes: 'oldschool'
9+
},
1010

11-
rehypePlugins: [
12-
rehypeSlug,
13-
[
14-
rehypeAutolinkHeadings,
15-
{
16-
behavior: 'wrap'
17-
}
18-
]
19-
]
11+
rehypePlugins: [
12+
rehypeSlug,
13+
[
14+
rehypeAutolinkHeadings,
15+
{
16+
behavior: 'wrap'
17+
}
18+
]
19+
]
2020
});
2121

2222
export default config;

package.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
{
2-
"name": "koding.dev",
3-
"version": "0.0.1",
4-
"private": true,
5-
"scripts": {
6-
"dev": "vite dev",
7-
"dev:open": "vite dev --open",
8-
"build": "vite build",
9-
"preview": "vite preview",
10-
"lint": "prettier --plugin-search-dir . --check . && eslint .",
11-
"format": "prettier --plugin-search-dir . --write . && eslint . --fix",
12-
"tunnel": "cloudflared tunnel run --url http://localhost:5173"
13-
},
14-
"devDependencies": {
15-
"@sveltejs/adapter-vercel": "^1.0.0-next.81",
16-
"@sveltejs/kit": "next",
17-
"@tailwindcss/line-clamp": "^0.4.2",
18-
"@tailwindcss/typography": "^0.5.7",
19-
"@types/nprogress": "^0.2.0",
20-
"@typescript-eslint/eslint-plugin": "^5.27.0",
21-
"@typescript-eslint/parser": "^5.27.0",
22-
"autoprefixer": "^10.4.7",
23-
"eslint": "^8.16.0",
24-
"eslint-config-prettier": "^8.3.0",
25-
"eslint-plugin-prettier": "^4.2.1",
26-
"eslint-plugin-svelte": "^2.14.1",
27-
"mdsvex": "^0.10.6",
28-
"postcss": "^8.4.14",
29-
"postcss-load-config": "^4.0.1",
30-
"prettier": "^2.6.2",
31-
"prettier-plugin-svelte": "^2.7.0",
32-
"prettier-plugin-tailwindcss": "^0.2.1",
33-
"rehype-autolink-headings": "^6.1.1",
34-
"rehype-slug": "^5.1.0",
35-
"svelte": "^3.44.0",
36-
"svelte-check": "^2.7.1",
37-
"svelte-icons": "^2.1.0",
38-
"svelte-preprocess": "^4.10.7",
39-
"tailwindcss": "^3.1.5",
40-
"tslib": "^2.3.1",
41-
"typescript": "^4.7.4",
42-
"vite": "^3.1.0"
43-
},
44-
"type": "module",
45-
"dependencies": {
46-
"@notionhq/client": "^2.2.2",
47-
"clsx": "^1.2.1",
48-
"nprogress": "^0.2.0"
49-
}
2+
"name": "koding.dev",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"dev": "vite dev",
7+
"dev:open": "vite dev --open",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"lint": "prettier --plugin-search-dir . --check . && eslint .",
11+
"format": "prettier --plugin-search-dir . --write . && eslint . --fix",
12+
"tunnel": "cloudflared tunnel run --url http://localhost:5173"
13+
},
14+
"devDependencies": {
15+
"@sveltejs/adapter-vercel": "^1.0.0-next.81",
16+
"@sveltejs/kit": "next",
17+
"@tailwindcss/line-clamp": "^0.4.2",
18+
"@tailwindcss/typography": "^0.5.7",
19+
"@types/nprogress": "^0.2.0",
20+
"@typescript-eslint/eslint-plugin": "^5.27.0",
21+
"@typescript-eslint/parser": "^5.27.0",
22+
"autoprefixer": "^10.4.7",
23+
"eslint": "^8.16.0",
24+
"eslint-config-prettier": "^8.3.0",
25+
"eslint-plugin-prettier": "^4.2.1",
26+
"eslint-plugin-svelte": "^2.14.1",
27+
"mdsvex": "^0.10.6",
28+
"postcss": "^8.4.14",
29+
"postcss-load-config": "^4.0.1",
30+
"prettier": "^2.6.2",
31+
"prettier-plugin-svelte": "^2.7.0",
32+
"prettier-plugin-tailwindcss": "^0.2.1",
33+
"rehype-autolink-headings": "^6.1.1",
34+
"rehype-slug": "^5.1.0",
35+
"svelte": "^3.44.0",
36+
"svelte-check": "^2.7.1",
37+
"svelte-icons": "^2.1.0",
38+
"svelte-preprocess": "^4.10.7",
39+
"tailwindcss": "^3.1.5",
40+
"tslib": "^2.3.1",
41+
"typescript": "^4.7.4",
42+
"vite": "^3.1.0"
43+
},
44+
"type": "module",
45+
"dependencies": {
46+
"@notionhq/client": "^2.2.2",
47+
"clsx": "^1.2.1",
48+
"nprogress": "^0.2.0"
49+
}
5050
}

postcss.config.cjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ const tailwindcss = require('tailwindcss');
22
const autoprefixer = require('autoprefixer');
33

44
const config = {
5-
plugins: [
6-
//Some plugins, like tailwindcss/nesting, need to run before Tailwind,
7-
tailwindcss(),
8-
//But others, like autoprefixer, need to run after,
9-
autoprefixer
10-
]
5+
plugins: [
6+
//Some plugins, like tailwindcss/nesting, need to run before Tailwind,
7+
tailwindcss(),
8+
//But others, like autoprefixer, need to run after,
9+
autoprefixer
10+
]
1111
};
1212

1313
module.exports = config;

src/app.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// for information about these interfaces
33
// and what to do when importing types
44
export declare namespace App {
5-
// interface Locals {}
6-
// interface PageData {}
7-
// interface Error {}
8-
// interface Platform {}
5+
// interface Locals {}
6+
// interface PageData {}
7+
// interface Error {}
8+
// interface Platform {}
99
}

src/app.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!DOCTYPE html>
22
<html lang="en" class="dark">
3-
<!--suppress HtmlRequiredTitleElement -->
4-
<head>
5-
<meta charset="utf-8" />
6-
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
7-
<meta name="viewport" content="width=device-width" />
8-
%sveltekit.head%
9-
</head>
10-
<body data-sveltekit-preload-data="hover">
11-
<div>%sveltekit.body%</div>
12-
</body>
3+
<!--suppress HtmlRequiredTitleElement -->
4+
<head>
5+
<meta charset="utf-8" />
6+
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
7+
<meta name="viewport" content="width=device-width" />
8+
%sveltekit.head%
9+
</head>
10+
<body data-sveltekit-preload-data="hover">
11+
<div>%sveltekit.body%</div>
12+
</body>
1313
</html>

src/app.postcss

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,36 @@
55

66
/* Setup page theming */
77
body {
8-
@apply bg-white text-black transition-all dark:bg-neutral-900 dark:text-white;
8+
@apply bg-white text-black transition-all dark:bg-neutral-900 dark:text-white;
99
}
1010

1111
@layer utilities {
12-
/* Typography */
13-
.text-title {
14-
@apply text-2xl font-bold dark:text-neutral-300;
15-
}
12+
/* Typography */
13+
.text-title {
14+
@apply text-2xl font-bold dark:text-neutral-300;
15+
}
1616

17-
.text-subtitle {
18-
@apply text-lg text-neutral-600 dark:text-neutral-400;
19-
}
17+
.text-subtitle {
18+
@apply text-lg text-neutral-600 dark:text-neutral-400;
19+
}
2020

21-
/* Basic Cards */
22-
.basic-card {
23-
@apply rounded-md border-[1px] border-neutral-300 bg-neutral-100 bg-opacity-70 p-4 dark:border-neutral-700 dark:bg-neutral-800 dark:bg-opacity-70;
24-
}
21+
/* Basic Cards */
22+
.basic-card {
23+
@apply rounded-md border-[1px] border-neutral-300 bg-neutral-100 bg-opacity-70 p-4 dark:border-neutral-700 dark:bg-neutral-800 dark:bg-opacity-70;
24+
}
2525

26-
/* Links */
27-
.link {
28-
@apply text-neutral-400 transition-all hover:text-neutral-200;
29-
}
26+
/* Links */
27+
.link {
28+
@apply text-neutral-400 transition-all hover:text-neutral-200;
29+
}
3030
}
3131

3232
/* Icon sizing */
3333
.icon.sm {
34-
@apply h-[24px] w-[24px];
34+
@apply h-[24px] w-[24px];
3535
}
3636

3737
/* TODO: Add all notion styles here */
3838
.notion-code-inline {
39-
@apply rounded-md bg-neutral-800 p-1 font-mono text-sm text-red-400 !important;
39+
@apply rounded-md bg-neutral-800 p-1 font-mono text-sm text-red-400 !important;
4040
}
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<script lang="ts">
2-
import { getURL, type CommissionData } from '$lib/data/commissions';
2+
import { getURL, type CommissionData } from '$lib/data/commissions';
33
4-
export let commission: CommissionData;
4+
export let commission: CommissionData;
55
</script>
66

77
<a href={commission.slug ? `/art/${commission.slug}` : undefined}>
8-
<div
9-
class="flex flex-col overflow-clip rounded-lg border-[1px] border-neutral-300 bg-neutral-100 bg-opacity-70 transition-all hover:scale-[101%] dark:border-neutral-700 dark:bg-neutral-800"
10-
>
11-
<img
12-
src={getURL(commission.images[0])}
13-
alt={commission.title}
14-
class="aspect-square object-cover object-top"
15-
/>
8+
<div
9+
class="flex flex-col overflow-clip rounded-lg border-[1px] border-neutral-300 bg-neutral-100 bg-opacity-70 transition-all hover:scale-[101%] dark:border-neutral-700 dark:bg-neutral-800"
10+
>
11+
<img
12+
src={getURL(commission.images[0])}
13+
alt={commission.title}
14+
class="aspect-square object-cover object-top"
15+
/>
1616

17-
<div class="p-4">
18-
<h2 class="font-medium text-blue-400">{commission.title}</h2>
19-
<p class="text-body text-ellipsis line-clamp-2">
20-
By {commission.artist.name}
21-
</p>
22-
</div>
23-
</div>
17+
<div class="p-4">
18+
<h2 class="font-medium text-blue-400">{commission.title}</h2>
19+
<p class="text-body text-ellipsis line-clamp-2">
20+
By {commission.artist.name}
21+
</p>
22+
</div>
23+
</div>
2424
</a>

0 commit comments

Comments
 (0)