Repository navigation
build(npm): add ESLint, Prettier and strict TypeScript checks - #35
Closed
google-labs-stitch[bot] wants to merge 6 commits into
Closed
google-labs-stitch[bot] wants to merge 6 commits into
google-labs-stitch[bot] wants to merge 6 commits into
Conversation
- Install ESLint, Prettier and the JSON, YAML and Markdown plugins. - Install TypeScript 6.0 beside TypeScript 7.0 in devDependencies. - Add eslint.config.mjs, .prettierrc.json and .prettierignore. - Enable the strict compiler flags in tsconfig.json. - Add format:check, lint and typecheck scripts in package.json. - Cast the dynamic fs import in src/index.ts. - Document the npm verification steps in AGENTS.md.
- Keep the build:wasm script without --no-opt from main. - Keep the build:ts, format:check, lint and typecheck scripts.
- Keep the build:wasm and verify:pack scripts from main. - Keep the build:ts, format:check, lint and typecheck scripts. - Add globals to devDependencies for the Node.js scripts. - Enable globals.node for JavaScript files in eslint.config.mjs.
- Keep the typed fs import in src/index.ts. - Keep the asynchronous init call from main in src/index.ts. - Keep the 0.3.0 version from main.
- Keep the 0.3.1 version from main in package.json. - Keep check:wasm beside the lint and typecheck scripts. - Update the npm verification commands in AGENTS.md.
- Add format:check, lint and typecheck to .github/workflows/ci.yml. - Update the npm verification commands in AGENTS.md.
Contributor
byteland-app
deleted the
stitch/add-eslint-prettier-strict-ts-jm1-2f832837-482f-40cb-b9cb-918a7287e7f3
branch
November 25, 2026 08:07
Contributor
Author
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
eslint(^10.15.0),@eslint/js(^10.0.1),typescript-eslint(^8.73.0),eslint-config-prettier(^10.1.8),globals(^17.14.0),prettier(^3.10.1),@eslint/json(^2.1.1),@eslint/markdown(^9.0.0) andeslint-plugin-yml(^3.10.0) indevDependencies.typescript(^6.0.3) besidetypescript-native(npm:typescript@^7.0.2) sotypescript-eslintuses TypeScript 6.0 without peer-dependency conflicts whilebuild:tsandtypecheckrun TypeScript 7.0.eslint.config.mjsfor JavaScript (globals.node), TypeScript (recommendedTypeChecked), JSON, YAML and Markdown, and ignorepkg/,dist/,target/,CHANGELOG.mdandpackage-lock.json..prettierrc.jsonand.prettierignoresoprettier --check .ignorespkg/,dist/,target/,CHANGELOG.mdandpackage-lock.json.verbatimModuleSyntax,isolatedDeclarations,noUncheckedIndexedAccess,exactOptionalPropertyTypes,noUnusedLocalsandnoUnusedParametersintsconfig.json.import(moduleName)result insrc/index.tsto satisfy@typescript-eslint/no-unsafe-assignmentwithout a change to the emitted code or declarations.format:check,lintandtypecheckscripts inpackage.json, run them in.github/workflows/ci.yml, and document the npm verification sequence inAGENTS.md.Verification
npm ciandnpm run format:checkon a clean checkout withoutpkg/ordist/.RUSTDOCFLAGS="-D warnings" npm run check:wasm,npm run verify:pack,npm run lintandnpm run typecheck.InitInputinsrc/index.tsfailsnpm run typecheckwithTS1484.cargo fmt --check,cargo clippy --locked --lib -- -D warnings,cargo build --locked --release,RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-depsandcargo package --list --locked.Automated PR initiated by user @byteland-app via Stitch Loop.