Skip to content

[BREAKING CHANGE] Drop eslint 8 support, require eslint 9#145

Open
jdforrester wants to merge 1 commit intomasterfrom
eslint-9
Open

[BREAKING CHANGE] Drop eslint 8 support, require eslint 9#145
jdforrester wants to merge 1 commit intomasterfrom
eslint-9

Conversation

@jdforrester
Copy link
Copy Markdown
Member

@jdforrester jdforrester commented Feb 23, 2026

Users creating a RuleTester object will need to migrate from setting options on parserOptions to languageOptions, for which the ecmaVersion default has switched from '5' to 'latest', & sourceType from 'script' to 'module'; other config options like env and parser should be adjusted per upstream instructions at https://eslint.org/docs/latest/use/migrate-to-9.0.0.

Note that there is a minor change to the test output, but I think it's acceptable (and due to the below).

This needed us to hopefully-temporarily drop use of eslint-config-wikimedia and insted inline many of the tests into this repo; once this is released, used by all our plugins, they're upgraded and released too, and the whole stack is fixed, we might even get back to using it.

Fixes #138

Comment thread src/write-docs-from-tests.js Outdated

const fs = require( 'fs' );
const { mkdirp } = require( 'mkdirp' );
const mkdirp = require( 'mkdirp' );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Needs rebase?

Comment thread README.md
# eslint-docgen
Automatically generate ESLint plugin documentation from rule metadata and test cases.

## Requirements
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

📋

Users creating a RuleTester object will need to migrate from setting options
on `parserOptions` to `languageOptions`, for which the `ecmaVersion` default
has switched from '5' to 'latest', & `sourceType' from 'script' to 'module';
other config options like `env` and `parser` should be adjusted per upstream
instructions at https://eslint.org/docs/latest/use/migrate-to-9.0.0.

Note that there is a minor change to the test output, but I think it's
acceptable.

This needed us to hopefully-temporarily drop use of eslint-config-wikimedia
and insted inline many of the tests into this repo; once this is released,
used by all our plugins, they're upgraded and released too, and the whole
stack is fixed, we might even get back to using it.

Fixes #138
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Support ESLint v9

2 participants