Skip to content

Commit 2ac2333

Browse files
committed
ci: add biome assist options, exclude .svelte-kit and svelte files, exclude package.json, update dependencies
1 parent a948d59 commit 2ac2333

File tree

7 files changed

+119
-108
lines changed

7 files changed

+119
-108
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For each template:
4545
**`quality.yml`**
4646

4747
- Runs on branch `main` for any push or pull request.
48-
- Runs prettier, eslint, and TypeScript type checks.
48+
- Runs biome and TypeScript type checks.
4949

5050
**`release.yml`**
5151
> [!CAUTION]

biome.json

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,39 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.3/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": "on",
7+
"useSortedAttributes": "on",
8+
"useSortedKeys": "on",
9+
"useSortedProperties": "on"
10+
}
11+
}
12+
},
313
"files": {
4-
"includes": ["**", "!**/build", "!**/dist", "!**/node_modules", "!**/*.md", "!**/pnpm-lock.yaml"]
14+
"includes": [
15+
"**",
16+
"!**/build",
17+
"!**/dist",
18+
"!**/node_modules",
19+
"!**/*.md",
20+
"!**/pnpm-lock.yaml",
21+
"!**/.svelte-kit",
22+
"!**/*.*svelte*",
23+
"!**/package.json"
24+
]
525
},
6-
"assist": { "actions": { "source": { "organizeImports": "on" } } },
726
"formatter": {
827
"lineWidth": 120
928
},
1029
"javascript": {
1130
"formatter": {
31+
"bracketSpacing": true,
1232
"enabled": true,
13-
"quoteStyle": "single",
1433
"jsxQuoteStyle": "double",
15-
"trailingCommas": "all",
34+
"quoteStyle": "single",
1635
"semicolons": "always",
17-
"bracketSpacing": true
36+
"trailingCommas": "all"
1837
}
1938
},
2039
"json": {
@@ -29,18 +48,17 @@
2948
"linter": {
3049
"enabled": true,
3150
"rules": {
32-
"recommended": true,
33-
3451
"correctness": {
3552
"noUnusedVariables": {
3653
"level": "error"
3754
}
3855
},
39-
"suspicious": {
40-
"noExplicitAny": "off"
41-
},
56+
"recommended": true,
4257
"style": {
4358
"noNonNullAssertion": "off"
59+
},
60+
"suspicious": {
61+
"noExplicitAny": "off"
4462
}
4563
}
4664
}

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"release:dev:publish": "changeset publish --no-git-tag --tag dev"
2626
},
2727
"devDependencies": {
28-
"@biomejs/biome": "2.2.3",
28+
"@biomejs/biome": "2.2.4",
2929
"@changesets/changelog-github": "^0.5.1",
30-
"@changesets/cli": "^2.29.6",
30+
"@changesets/cli": "^2.29.7",
3131
"@types/node": "^24.3.1",
3232
"glob": "^11.0.3",
3333
"rimraf": "^6.0.1",
@@ -41,6 +41,8 @@
4141
"pnpm": "^10.0.0"
4242
},
4343
"pnpm": {
44-
"onlyBuiltDependencies": ["esbuild"]
44+
"onlyBuiltDependencies": [
45+
"esbuild"
46+
]
4547
}
4648
}

packages/_template/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"extends": "../../tsconfig.build.json",
3-
"include": ["src"],
42
"compilerOptions": {
53
"baseUrl": ".",
64
"module": "ESNext"
7-
}
5+
},
6+
"extends": "../../tsconfig.build.json",
7+
"include": ["src"]
88
}

pnpm-lock.yaml

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

tsconfig.build.json

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
11
{
2-
"compilerOptions": {
3-
"allowJs": false,
4-
"allowSyntheticDefaultImports": true,
5-
"declaration": true,
6-
"downlevelIteration": true,
7-
"esModuleInterop": true,
8-
"jsx": "preserve",
9-
"noEmit": true,
10-
"lib": [
11-
"dom",
12-
"dom.iterable",
13-
"esnext"
14-
],
15-
"target": "esnext",
16-
"noImplicitReturns": false,
17-
"resolveJsonModule": true,
18-
"skipLibCheck": true,
19-
"strict": true,
20-
"verbatimModuleSyntax": true,
21-
"moduleResolution": "Bundler",
22-
"module": "ESNext",
23-
"customConditions": [
24-
"source"
25-
]
26-
}
27-
}
2+
"compilerOptions": {
3+
"allowJs": false,
4+
"allowSyntheticDefaultImports": true,
5+
"customConditions": ["source"],
6+
"declaration": true,
7+
"downlevelIteration": true,
8+
"esModuleInterop": true,
9+
"jsx": "preserve",
10+
"lib": ["dom", "dom.iterable", "esnext"],
11+
"module": "ESNext",
12+
"moduleResolution": "Bundler",
13+
"noEmit": true,
14+
"noImplicitReturns": false,
15+
"resolveJsonModule": true,
16+
"skipLibCheck": true,
17+
"strict": true,
18+
"target": "esnext",
19+
"verbatimModuleSyntax": true
20+
}
21+
}

0 commit comments

Comments
 (0)