Skip to content

Clean up stale development configuration#420

Merged
hsbt merged 4 commits into
mainfrom
claude/trusting-grothendieck-36f809
Jun 12, 2026
Merged

Clean up stale development configuration#420
hsbt merged 4 commits into
mainfrom
claude/trusting-grothendieck-36f809

Conversation

@hsbt

@hsbt hsbt commented Jun 12, 2026

Copy link
Copy Markdown
Member

This cleans up several pieces of stale development configuration that had accumulated from the original action template and past migrations.

The npm scripts used single quotes around glob patterns, which cmd.exe passes through verbatim, so npm run lint and npm run format failed on Windows. Double quotes behave the same as single quotes here on POSIX shells (the glob is not expanded either way and eslint/prettier resolve the pattern themselves), so switching to them makes the scripts work on both platforms without changing behavior on Linux CI.

.nvmrc is gone since nobody on this project uses nvm anymore. The two workflows that referenced it via node-version-file now specify node-version: '20' directly. The Node version itself is intentionally left at 20; upgrading to 22 and then 24 will be done separately.

eslint.config.mjs carried leftovers from the eslint 9 migration (420f3a6): rule entries under the filenamesPlugin and importPlugin namespaces, which eslint-plugin-github 6 flat configs do not register (they expose import, eslint-comments, and i18n-text instead). These entries were set to off and silently ignored. The stale ecmaVersion parser option is also dropped, as the TypeScript parser overrides it.

tsconfig.json loses the option descriptions copied from an old tsc --init template and the explicit noImplicitAny, which strict already implies. target: es6 is kept for now and can be raised together with the Node upgrade. A full npm run all passes and dist/ is unchanged after rebuilding.

🤖 Generated with Claude Code

hsbt and others added 4 commits June 13, 2026 06:40
cmd.exe does not strip single quotes, so glob patterns like
'src/**/*.ts' were passed to eslint and prettier verbatim and
matched nothing. Double quotes are handled by both cmd.exe and
POSIX shells, and neither expands the glob inside them, so the
tools keep doing their own pattern expansion as before.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Nobody on this project uses nvm anymore. Inline the Node version
into the two workflows that referenced the file via
node-version-file, keeping Node 20 as-is until the planned
upgrade to 22 and 24.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The filenamesPlugin and importPlugin namespaces are not registered
by eslint-plugin-github 6 flat configs, which expose these plugins
as import, eslint-comments, and i18n-text. The entries referencing
them were leftovers from the eslint 9 migration in 420f3a6 and were
silently ignored because they were set to off. Also drop the stale
ecmaVersion setting, which the TypeScript parser overrides anyway.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Drop the option descriptions copied from an old tsc --init template
and the explicit noImplicitAny, which strict already implies.
No change in compiler behavior; dist/ is unchanged after a rebuild.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 12, 2026 22:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes stale development configuration and normalizes cross-platform tooling behavior (especially for Windows), while keeping the project’s intentional Node 20 baseline.

Changes:

  • Updated package.json scripts to use double quotes for glob patterns so npm run lint / npm run format work on Windows.
  • Removed obsolete .nvmrc usage by hardcoding Node 20 in workflows.
  • Cleaned up legacy/unused config noise in eslint.config.mjs and tsconfig.json.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsconfig.json Removes template comments and redundant options while preserving current compiler behavior (strict, ES6 target).
package.json Fixes Windows script execution by switching glob quoting to double quotes.
eslint.config.mjs Removes stale parser/rule entries that were unused/ignored under the current flat config setup.
.nvmrc Deletes unused Node version file now that workflows specify Node directly.
.github/workflows/compile-dependabot-updates.yml Switches from node-version-file to explicit node-version: '20'.
.github/workflows/check-dist.yml Switches from node-version-file to explicit node-version: '20'.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hsbt hsbt merged commit b707964 into main Jun 12, 2026
14 checks passed
@hsbt hsbt deleted the claude/trusting-grothendieck-36f809 branch June 12, 2026 22:22
hsbt added a commit that referenced this pull request Jun 12, 2026
The .nvmrc file these workflows used to read the Node version from was
removed in #420, so the version is written into the setup-node steps
directly. Keep it in sync with the node24 runtime the action declares.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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