Support JS/JSX/MJS/CJS in ESLint, Vitest, and tsconfig#46
Merged
gtbuchanan merged 1 commit intomainfrom Apr 20, 2026
Merged
Conversation
c7666f2 to
f675154
Compare
Add shared `scriptFileExtensions` constants covering all 8 script extensions (cjs, cts, js, jsx, mjs, mts, ts, tsx). Replace hardcoded `['**/*.ts']` patterns across ESLint plugin configs with the shared constant so all script files are linted and type-checked. - eslint-config: Shared `files.ts` with `scriptFiles` and `tsOnlyFiles`. All plugin configs target all script extensions. JSDoc/TSDoc and TS-syntax rules (`explicit-function-return-type`, `consistent-type- exports`, `no-import-type-side-effects`) scoped to TS-only files. `disableTypeChecked` ignores all script extensions so JS files stay type-checked when `allowJs` is enabled. - vitest-config: Shared `files.ts` with `scriptFileExtensions`. Unit and e2e test includes cover all extensions. Coverage extensions now include `jsx` for consistency. - cli: `typeCheckInclude` broadened to `['*', '.*']` so root-level config files and dotfiles (e.g. `.markdownlint.mjs`) are included in tsconfig projects. Turbo test inputs use `vitest.config.*` with `!vitest.config.e2e.*` negation for extension-agnostic cache keys. - turbo:init regenerated turbo.json and all tsconfig.json files. Closes #40 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f675154 to
5ecaad1
Compare
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
scriptFileExtensionsconstants (8 extensions) to eslint-config and vitest-config['**/*.ts']patterns in ESLint plugin configs with the shared constantexplicit-function-return-type,consistent-type-exports,no-import-type-side-effects) and JSDoc/TSDoc rules to TS-only filesincludeto['*', '.*']for root-level config and dotfile coveragevitest.config.*with!vitest.config.e2e.*negation in turbo test inputsTest plan
markdownlint-config/src/index.mjs)turbo:initregenerated turbo.json and all tsconfig.json filesCloses #40
🤖 Generated with Claude Code