Skip to content

build: switch Makefiles and pre-commit to flat config (gh54 part VII)#10973

Draft
Planeshifter wants to merge 1 commit intophilipp/gh54-eslint-v9from
philipp/gh54-switch-to-flat-config
Draft

build: switch Makefiles and pre-commit to flat config (gh54 part VII)#10973
Planeshifter wants to merge 1 commit intophilipp/gh54-eslint-v9from
philipp/gh54-switch-to-flat-config

Conversation

@Planeshifter
Copy link
Member

@Planeshifter Planeshifter commented Mar 15, 2026

Progresses stdlib-js/metr-issue-tracker#54.

Description

What is the purpose of this pull request?

This pull request:

  • Switches Makefiles and pre-commit hook from legacy .eslintrc.* config to flat config autodiscovery
  • Removes ESLINT_USE_FLAT_CONFIG=false, --ignore-path, --config, and per-target config variables from JS and TS eslint.mk.
  • Removes per-directory tsconfig.json copy mechanism from TS eslint.mk (flat config's TS block handles this).
  • Removes legacy config path variables from the pre-commit hook.
  • ESLint now autodiscovers eslint.config.cjs and applies rules based on file patterns.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

Stacked on #10972.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

This PR was written primarily by Claude Code.


@stdlib-js/reviewers

@Planeshifter Planeshifter changed the title build: switch Makefiles and pre-commit to flat config build: switch Makefiles and pre-commit to flat config (gh54 part VII) Mar 15, 2026
@Planeshifter Planeshifter force-pushed the philipp/gh54-eslint-v9 branch from 85dcf2f to fe1dbb3 Compare March 15, 2026 18:07
Update build tooling to use ESLint flat config (eslint.config.cjs)
instead of legacy .eslintrc.* files:

- Remove `ESLINT_USE_FLAT_CONFIG=false` from JS eslint.mk
- Remove `--ignore-path`, `--config`, and per-target config variables
  from both JS and TS eslint.mk (flat config autodiscovery handles
  all of this via eslint.config.cjs)
- Remove per-directory tsconfig.json copy mechanism from TS eslint.mk
  (the flat config's TS block points to the root tsconfig.json)
- Remove legacy config path variables from pre-commit hook

ESLint now autodiscovers eslint.config.cjs at the repo root and
applies the correct rules based on file patterns (benchmarks, tests,
examples, TypeScript) defined in the flat config.

Ref: stdlib-js/metr-issue-tracker#54
@Planeshifter Planeshifter force-pushed the philipp/gh54-switch-to-flat-config branch from c3dab8a to c6bab92 Compare March 15, 2026 18:08
@Planeshifter Planeshifter added the METR Pull request associated with the METR project. label Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

METR Pull request associated with the METR project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant