Repository navigation
build(npm): add Biome checks and strict TypeScript flags - #11
Open
google-labs-stitch[bot] wants to merge 9 commits into
Open
google-labs-stitch[bot] wants to merge 9 commits into
google-labs-stitch[bot] wants to merge 9 commits into
Conversation
- Add @biomejs/biome to devDependencies and lock its version. - Add biome.json for TypeScript, JSON, YAML and Markdown checks. - Exclude CHANGELOG.md and package-lock.json from Biome checks. - Enable strict compiler flags in tsconfig.json. - Add lint, format:check and typecheck scripts to package.json. - Document the npm verification commands in AGENTS.md.
- Merge origin/main into the feature branch. - Keep lint, format:check, typecheck and verify:pack in package.json. - Replace the template placeholder string in scripts/verify-pack.mjs.
- Merge origin/main into the feature branch. - Keep check:wasm, lint, format:check and typecheck in package.json. - Keep check:wasm, build:wasm and typecheck in AGENTS.md.
- Merge origin/main into the feature branch. - Keep check:wasm, build:wasm, typecheck and verify:pack in AGENTS.md.
Contributor
|
Review: Preferred over #35 (Biome keeps TS 7.0 and adds a single binary dependency). Please make two updates before merge:
|
- Merge origin/main into the feature branch. - Keep cargo package, lint, format:check and typecheck in AGENTS.md.
- Run npm run lint after npm ci in .github/workflows/ci.yml. - Run npm run format:check after npm run lint in ci.yml. - Run npm run typecheck after npm run verify:pack in ci.yml.
Contributor
Author
|
Addressed in
|
Contributor
- Merge origin/main into the feature branch. - Keep the ES2020 lib list and strict flags in tsconfig.json. - Keep the setup-wasm step, MSRV job and npm checks in ci.yml. - Format postbuild-wasm.mjs and verify-pack.mjs for Biome.
Contributor
Author
|
Addressed in
|
Contributor
- Merge origin/main into the feature branch. - Keep @biomejs/biome with @types/node 24.19.2 in package.json. - Run the Biome and TypeScript checks in build-wasm in ci.yml. - Replace the interface merge and assertions in src/index.ts. - Format normalize-jsdoc.mjs and verify-pack.mjs for Biome.
Contributor
Author
|
Synced with updated
|
Contributor
|
Review: Biome integration and strict TypeScript flags look clean. Please sync onto updated Two minor suggestions while syncing:
|
- Merge main with warning checks, telemetry and parameter controls. - Add --error-on-warnings to the lint script in package.json. - Shorten the comment in ci.yml to meet the STE word limit. - Format README.md and scripts/verify-pack.mjs with Biome.
Contributor
Author
|
Synced with updated
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@biomejs/biome(^2.6.8) todevDependenciesinpackage.jsonand lock its version inpackage-lock.jsonalongside@types/node(24.19.2) andtypescript(7.0.2).biome.jsonwith Git ignore support,files.ignoreUnknownset totrue, two-space indentation, double quotes,recommendedlint rules andassist.enabledset tofalse.files.includesinbiome.jsonto["**", "!CHANGELOG.md", "!package-lock.json"]so Biome checks TypeScript, JavaScript, JSON, YAML and Markdown files and skipsCHANGELOG.mdandpackage-lock.json.TuneletAudioViews(src/index.ts), replace string-literal template placeholders inscripts/verify-pack.mjs, and formatREADME.md,scripts/normalize-jsdoc.mjs,scripts/postbuild-wasm.mjsandscripts/verify-pack.mjsso Biome reports zero lint warnings and zero format diffs."lib": ["ES2020"]and"exactOptionalPropertyTypes": trueintsconfig.jsonand enableverbatimModuleSyntax,isolatedDeclarations,noUncheckedIndexedAccess,noUnusedLocalsandnoUnusedParameters.lint(biome lint --error-on-warnings .),format:checkandtypecheckscripts topackage.jsonand run them in thebuild-wasmjob of.github/workflows/ci.ymlalongside./.github/actions/setup-wasm,check-osandmsrv.npmcheck, build and typecheck commands inAGENTS.md.Verification
npm ci,npm run lint(--error-on-warnings) andnpm run format:checkon a clean checkout withoutpkg/ordist/(zero errors and zero warnings across all checked files).npx biome format --write .makes zero diffs and skipsCHANGELOG.mdandpackage-lock.json.npm run build:wasm,npm run typecheck,npm run build:tsandnpm run verify:pack -- --ignore-scriptsundertypescript(7.0.2).npm run check:wasmand all Cargo checks (cargo rustc --locked --lib --release -- -D warnings,RUSTFLAGS="-D warnings" cargo build --locked --release,cargo fmt --check,cargo clippy --locked --lib -- -D warnings,RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-depsandcargo package --locked).Automated PR initiated by user @byteland-app via Stitch Loop.