Skip to content
Source
Sign inSign up
TanStack/cli

fix(create): generate starters that pass Biome lint #570

Mergedtannerlinsleymerged 1 commit intomain fromrefs/pull/570/headmerged by tannerlinsley

Showing 5 changed files with 69 additions and 18 deletions (loading 2).

x
0 of 5 viewed, 5 left
5 additions and 0 deletions.changeset/clean-biome-starters.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/create': patch
+---
+​
+Generate React and Solid starters that pass their Biome lint checks. Use Router's nonce-aware theme script helper in React and set the default document language in Solid.
31 additions and 0 deletionspackages/cli/tests-e2e/biome-smoke.spec.tsAdded
View file
@@ -0,0 +1,31 @@
+import { execFile } from 'node:child_process'
+import { promisify } from 'node:util'
+import { test } from '@playwright/test'
+import { createReactAppFixture } from './helpers'
+​
+const execFileAsync = promisify(execFile)
+​
+for (const framework of ['react', 'solid'] as const) {
+ for (const blank of [false, true]) {
+ test(`@blocking lints a ${blank ? 'blank' : 'standard'} ${framework} Biome app`, async () => {
+ const fixture = await createReactAppFixture({
+ appName: `${framework}-biome-${blank ? 'blank' : 'standard'}`,
+ framework,
+ blank,
+ toolchain: 'biome',
+ packageManager: 'pnpm',
+ skipDevServer: true,
+ runQualityGatesChecks: true,
+ })
+ try {
+ await execFileAsync('pnpm', ['run', 'lint'], {
+ cwd: fixture.appDir,