Skip to content

Commit 1dbfdfe

Browse files
author
Sandi Karajic
committed
add biome and add options
1 parent db80464 commit 1dbfdfe

32 files changed

Lines changed: 1325 additions & 813 deletions

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

biome.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"includes": ["**", "!!**/dist", "!!index.html"]
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "space"
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"recommended": true,
19+
"a11y": {
20+
"useFocusableInteractive": "off",
21+
"useSemanticElements": "off"
22+
}
23+
}
24+
},
25+
"css": {
26+
"parser": {
27+
"tailwindDirectives": true
28+
}
29+
},
30+
"javascript": {
31+
"formatter": {
32+
"quoteStyle": "double"
33+
}
34+
},
35+
"assist": {
36+
"enabled": true,
37+
"actions": {
38+
"source": {
39+
"organizeImports": "on"
40+
}
41+
}
42+
}
43+
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="description" content="A community made to manage a custom API that serves static data.">
99
<title>RAW - CommunityDragon</title>
1010
<script>
11-
(function() {
11+
(() => {
1212
try {
1313
const storageKey = 'ui-theme';
1414
const defaultTheme = 'system';

package-lock.json

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
{
2-
"private": true,
3-
"type": "module",
4-
"scripts": {
5-
"dev": "vite",
6-
"build": "vite build",
7-
"preview": "vite preview"
8-
},
9-
"dependencies": {
10-
"@base-ui/react": "^1.2.0",
11-
"@fontsource-variable/inter": "^5.2.8",
12-
"@tailwindcss/vite": "^4.2.1",
13-
"class-variance-authority": "^0.7.1",
14-
"clsx": "^2.1.1",
15-
"lucide-react": "^0.575.0",
16-
"preact": "^10.26.9",
17-
"preact-iso": "^2.11.1",
18-
"preact-render-to-string": "^6.6.6",
19-
"tailwind-merge": "^3.5.0",
20-
"tailwindcss": "^4.2.1"
21-
},
22-
"devDependencies": {
23-
"@preact/preset-vite": "^2.10.2",
24-
"@types/node": "^25.3.1",
25-
"@types/react": "^19.2.14",
26-
"shadcn": "^3.8.5",
27-
"tw-animate-css": "^1.4.0",
28-
"typescript": "^5.9.3",
29-
"vite": "^7.0.4",
30-
"vite-plugin-html": "^3.2.2",
31-
"vite-tsconfig-paths": "^6.1.1"
32-
}
2+
"private": true,
3+
"type": "module",
4+
"scripts": {
5+
"dev": "vite",
6+
"build": "vite build",
7+
"preview": "vite preview"
8+
},
9+
"dependencies": {
10+
"@base-ui/react": "^1.2.0",
11+
"@fontsource-variable/inter": "^5.2.8",
12+
"@tailwindcss/vite": "^4.2.1",
13+
"class-variance-authority": "^0.7.1",
14+
"clsx": "^2.1.1",
15+
"lucide-react": "^0.575.0",
16+
"preact": "^10.26.9",
17+
"preact-iso": "^2.11.1",
18+
"preact-render-to-string": "^6.6.6",
19+
"tailwind-merge": "^3.5.0",
20+
"tailwindcss": "^4.2.1"
21+
},
22+
"devDependencies": {
23+
"@biomejs/biome": "2.4.4",
24+
"@preact/preset-vite": "^2.10.2",
25+
"@types/node": "^25.3.1",
26+
"@types/react": "^19.2.14",
27+
"shadcn": "^3.8.5",
28+
"tw-animate-css": "^1.4.0",
29+
"typescript": "^5.9.3",
30+
"vite": "^7.0.4",
31+
"vite-plugin-html": "^3.2.2",
32+
"vite-tsconfig-paths": "^6.1.1"
33+
}
3334
}

0 commit comments

Comments
 (0)