Skip to content
Open

Dev #31

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

4 changes: 4 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import mdx from "@astrojs/mdx";
import svelte from "@astrojs/svelte";
import tailwindcss from "@tailwindcss/vite";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
import expressiveCode from "astro-expressive-code";
import { defineConfig } from "astro/config";
Expand Down Expand Up @@ -34,6 +35,9 @@ export default defineConfig({
],
gfm: true,
},
vite: {
plugins: [tailwindcss()],
},
integrations: [
svelte(),
// NOTE: expressiveCode must be before mdx
Expand Down
154 changes: 92 additions & 62 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,64 +1,94 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"organizeImports": {
"enabled": true
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"javascript": {
"globals": [
"Astro"
]
},
"files": {
"ignore": [
".vscode",
".contents/*.json"
]
},
"formatter": {
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "warn"
}
}
},
"overrides": [
{
"include": [
"*.jsonc"
],
"json": {
"parser": {
"allowComments": true
}
}
},
{
"include": [
"*.svelte"
],
"linter": {
"rules": {
"correctness": {
"noUnusedLabels": "off"
},
"suspicious": {
"noConfusingLabels": "off"
},
"style": {
"useConst": "off"
}
}
}
}
]
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"javascript": {
"globals": ["Astro"]
},
"files": {
"includes": ["**", "!**/.vscode", "!**/.contents/**/*.json"]
},
"formatter": {
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "warn"
},
"nursery": {
// experimental: [useSortedClasses | Biome](https://biomejs.dev/linter/rules/use-sorted-classes/)
"useSortedClasses": {
"level": "error",
"options": {
"functions": ["clsx", "tw"]
}
}
}
}
},
"html": {
"experimentalFullSupportEnabled": true,
},
"overrides": [
{
"includes": ["**/*.jsonc"],
"json": {
"parser": {
"allowComments": true
}
}
},
{
"includes": ["**/*.css"],
"linter": {
"rules": {
"suspicious": {
"noDuplicateProperties": "info",
"noUnknownAtRules": "info"
},
"correctness": {
"noUnknownProperty": "info"
}
}
}
},
{
"includes": ["**/*.astro"],
"linter": {
"rules": {
"style": {
"useConst": "off",
"useImportType": "off"
},
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
}
}
}
},
{
"includes": ["**/*.svelte"],
"linter": {
"rules": {
"correctness": {
"noUnusedLabels": "off"
},
"suspicious": {
"noConfusingLabels": "off"
},
"style": {
"useConst": "off"
}
}
}
}
]
}
Loading