Skip to content

Convert source from JavaScript to TypeScript#160

Draft
acbart with Copilot wants to merge 1 commit into
masterfrom
copilot/convert-repo-to-typescript
Draft

Convert source from JavaScript to TypeScript#160
acbart with Copilot wants to merge 1 commit into
masterfrom
copilot/convert-repo-to-typescript

Conversation

Copilot AI commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Migrates all 46 src/ files from .js to .ts and wires up the TypeScript toolchain. Uses lenient compiler settings (strict: false, noImplicitAny: false) so existing code compiles unchanged — this establishes the infrastructure for incremental type annotation.

Toolchain

  • tsconfig.jsonmoduleResolution: bundler, noEmit: true, ignoreDeprecations: "6.0", baseUrl: ./src
  • webpack.config.js — entry → blockpy.ts; ts-loader (transpileOnly) + babel-loader pipeline; .ts added to resolve.extensions; removed deprecated eslint-loader (replaced by standalone npm run lint)
  • .eslintrc.json — parser swapped to @typescript-eslint/parser; original rules unchanged
  • package.json — adds "lint": "eslint src/" script; new devDeps: typescript@6, ts-loader@8, eslint@8, @typescript-eslint/{parser,eslint-plugin}, @types/{jquery,knockout}

Source

  • All 46 src/**/*.js.ts
  • 17 imports with explicit .js extensions stripped
  • src/globals.d.ts — declares script-tag globals (Sk, Blockly, FilePond) as any

Copilot AI changed the title Convert repository from JavaScript to TypeScript Convert source from JavaScript to TypeScript Jun 30, 2026
Copilot AI requested a review from acbart June 30, 2026 22:00
Copilot stopped work on behalf of acbart due to an error July 1, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants