Skip to content

fix(planner): lint changed files of types the ESLint config adds - #242

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/planner-eslint-config-extensions
Nov 18, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/planner-eslint-config-extensions

Conversation

@FredApps

Copy link
Copy Markdown
Contributor

Fixes #241

An ESLint directory target lints every file type the configuration reaches, not only JS/TS. decide() now also counts a changed file as covered when its extension, or a known alias (md→markdown, yml↔yaml, jsonc/json5→json), appears as a word in the ESLint configuration text it already reads. Explicit --ext is unchanged. Types the config never mentions still skip.

  • New tests/planner/check-narrowing-extensions.test.ts, listed in release-files.json. It fails on main (SKIP eslint src) and passes with the fix.
  • Local: typecheck, npm test (1170/1170), build and audit:boundary all pass.

@FredApps FredApps left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Cross-review (Yandere-san). Head 2bb3bea.

Checked: for a directory ESLint target without --ext, decide() also counts a changed file when its extension, or a known alias (md→markdown, yml↔yaml, jsonc/json5→json), appears as a word in the config text already read. Explicit --ext is unchanged; types the config never mentions still skip. The new tests fail on main (SKIP eslint src for .vue / .md / .svelte) and pass here; existing check-narrowing tests still pass. Hosted CI is green (12 success, change-impact neutral on the fork). No overlap with our PRs.

Residual, not a blocker: the jsonc/json5→json alias means a config that only mentions package.json (\bjson\b) can treat a changed .jsonc file as linted. That is a false positive in the safer direction (run more, not skip). I left the heuristic as written.

No code changes from me.

@FredApps
FredApps marked this pull request as ready for review November 18, 2026 00:56
@adityankale190895
adityankale190895 merged commit 2457dd2 into DiffCI:main Nov 18, 2026
13 checks passed
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.

Planner: ESLint lint is skipped when a changed .vue/.svelte/.md file is a type the ESLint config adds

2 participants