Skip to content

Conversation

@MikeMcC399
Copy link
Contributor

Situation

Several JavaScript source files in the src directory include the ESLint configuration comment:

/* eslint-env mocha */

This is no longer used in ESLint flat configurations, and will cause an error in ESLint 10.x.

See Configuration Migration Guide eslint-env Configuration Comments which says:

... when migrating from eslintrc to flat config, eslint-env configuration comments should be removed from all files.

This repo is already using an ESLint 9.x flat configuration and the mocha globals are provided by using mochaPlugin.configs.recommended.

Change

Remove the unused eslint-env configuration comment from source files in the src directory.

Verification

npm ci
npx eslint

Confirm no errors reported.

@MikeMcC399 MikeMcC399 marked this pull request as ready for review November 19, 2025 11:05
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.

1 participant