Skip to content

Commit b672222

Browse files
committed
move biome to www
1 parent 8833f4c commit b672222

File tree

9 files changed

+67
-59
lines changed

9 files changed

+67
-59
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: pnpm build
3030

3131
- name: Lint check
32-
run: pnpm check
32+
run: pnpm -C www check
3333
test:
3434
runs-on: ubuntu-latest
3535
strategy:

biome.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,16 @@
99
"build:all": "turbo build",
1010
"test": "turbo test --filter='./packages/*'",
1111
"e2e": "turbo e2e",
12-
"check": "biome check packages/",
13-
"check:apply": "biome check packages/ --apply",
14-
"lint": "biome lint packages/",
15-
"lint:apply": "biome lint packages/ --apply",
16-
"format": "biome format",
17-
"format:write": "biome format --write",
18-
"version": "changeset version && pnpm install --no-frozen-lockfile && pnpm run check:apply"
12+
"check": "pnpm -C www check",
13+
"check:fix": "pnpm -C www check:fix",
14+
"version": "changeset version && pnpm install --no-frozen-lockfile && pnpm run check:fix"
1915
},
2016
"keywords": [
2117
"withastro"
2218
],
2319
"author": "bholmesdev",
2420
"license": "MIT",
2521
"devDependencies": {
26-
"@biomejs/biome": "^1.8.3",
2722
"@changesets/changelog-github": "^0.5.0",
2823
"@changesets/cli": "^2.27.1",
2924
"@playwright/test": "^1.45.3",

pnpm-lock.yaml

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

www/astro.config.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
import { defineConfig } from "astro/config";
21
import starlight from "@astrojs/starlight";
2+
import { defineConfig } from "astro/config";
33

44
export default defineConfig({
55
integrations: [
66
starlight({
77
title: "Simple Stack 🌱",
88
social: [
9-
{ icon: "github", label: "GitHub", href: "https://github.com/bholmesdev/simple-stack" },
9+
{
10+
icon: "github",
11+
label: "GitHub",
12+
href: "https://github.com/bholmesdev/simple-stack",
13+
},
1014
{ icon: "discord", label: "Discord", href: "https://wtw.dev/chat" },
1115
],
1216
sidebar: [
13-
{
17+
{
1418
label: "💾 Store",
1519
link: "/store",
1620
},

www/biome.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"linter": {
4+
"rules": {
5+
"recommended": true,
6+
"a11y": {
7+
"noSvgWithoutTitle": "warn",
8+
"useAltText": "warn",
9+
"useButtonType": "warn",
10+
"useKeyWithClickEvents": "warn"
11+
},
12+
"correctness": {
13+
"useExhaustiveDependencies": "warn"
14+
},
15+
"performance": {
16+
"noDelete": "warn"
17+
},
18+
"style": {
19+
"all": false
20+
},
21+
"suspicious": {
22+
"noArrayIndexKey": "warn",
23+
"noAssignInExpressions": "warn",
24+
"noEmptyInterface": "off",
25+
"noExplicitAny": "warn",
26+
"noConsoleLog": "warn"
27+
}
28+
}
29+
},
30+
"organizeImports": {
31+
"enabled": true
32+
},
33+
"vcs": {
34+
"clientKind": "git",
35+
"enabled": true,
36+
"useIgnoreFile": true
37+
},
38+
"files": {
39+
"ignore": ["**/.astro/"]
40+
}
41+
}

www/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
"start": "astro dev",
99
"build": "astro check && astro build",
1010
"preview": "astro preview",
11-
"astro": "astro"
11+
"astro": "astro",
12+
"check": "biome check .",
13+
"check:fix": "biome check . --write"
14+
},
15+
"devDependencies": {
16+
"@biomejs/biome": "^1.8.3"
1217
},
1318
"dependencies": {
1419
"@astrojs/check": "^0.9.6",

www/src/content/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { defineCollection } from 'astro:content';
2-
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
1+
import { defineCollection } from "astro:content";
2+
import { docsSchema, i18nSchema } from "@astrojs/starlight/schema";
33

44
export const collections = {
55
docs: defineCollection({ schema: docsSchema() }),
6-
i18n: defineCollection({ type: 'data', schema: i18nSchema() }),
6+
i18n: defineCollection({ type: "data", schema: i18nSchema() }),
77
};

www/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "astro/tsconfigs/strict"
3-
}
2+
"extends": "astro/tsconfigs/strict"
3+
}

0 commit comments

Comments
 (0)