Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ESLint v9 #526

Open
MikeMcC399 opened this issue May 7, 2024 · 5 comments
Open

Support ESLint v9 #526

MikeMcC399 opened this issue May 7, 2024 · 5 comments

Comments

@MikeMcC399
Copy link

MikeMcC399 commented May 7, 2024

Request

This is a request for the eslint-doc-generator to support usage in an ESLint v9 environment.

Why it's needed

ESLint v9 is the current version. eslint-doc-generator assists in generating standardized documentation sections independently of plugin authors. This is possible on ESLint v8 and earlier versions.

It would be beneficial to users of plugins working under ESLint v9 to have support for this version. This would enable a continued high standard of plugin documentation information available.

Related issues

@MikeMcC399
Copy link
Author

In the meantime it may be a good idea to add a note to the README concerning the status with ESLint v9.

Currently there is no restriction for ESLint v9 in the repo according to package.json:

"peerDependencies": {
"eslint": ">= 7"
},

@bmish
Copy link
Owner

bmish commented May 8, 2024

I would like to make sure we work with ESLint v9. However, I'm not actually sure of any ESLint v9 specific issues.

The peer dependency issue in #525 is not really specific to ESLint v9.

Besides that, is there any actual problem using it with ESLint v9?

@ljharb
Copy link

ljharb commented May 8, 2024

since eslint 9 defaults to flat config, i assume #376 is a blocker

@bmish
Copy link
Owner

bmish commented May 8, 2024

I haven't really identified a specific blocker with flat configs. That issue was more intended to investigate whether flat configs will need additional work to support. As long as flat configs are exported from plugins using the existing configs object, we should be able to identify them. The problem is, many plugins are exporting flat configs only via string exports (const recommended = require('eslint-plugin-foo/configs/recommended');), and that isn't detectable really. Discussed more in eslint/eslint#18095.

@MikeMcC399
Copy link
Author

MikeMcC399 commented May 8, 2024

@bmish

Hello again 😄

Same confirmation steps as before, running under Windows 11, except updated to ESLint 9.2.0.

git clone https://github.com/cypress-io/eslint-plugin-cypress
cd eslint-plugin-cypress
npm ci
npm install eslint@9 eslint-doc-generator@1.7.1 -D
npx eslint-doc-generator

No errors apart from the peer dependency warning with npm install.

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

No branches or pull requests

3 participants