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

Bug(trivial): Incorrect documentation URL in error #17463

Closed
1 task
WillsterJohnson opened this issue Aug 13, 2023 · 1 comment · Fixed by #17465
Closed
1 task

Bug(trivial): Incorrect documentation URL in error #17463

WillsterJohnson opened this issue Aug 13, 2023 · 1 comment · Fixed by #17465
Assignees
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly repro:yes

Comments

@WillsterJohnson
Copy link

Environment

ESLint version: 8.47.0

What parser are you using?

Default (Espree)

What did you do?

Configuration
// eslint.config.js
export default [
  {
    files: ["*.js"],
    extends: ["eslint:recommended"]
  },
];
` ESLint output:
$ eslint .

Oops! Something went wrong! :(

ESLint: 8.47.0

A config object is using the "extends" key, which is not supported in flat config system.

Instead of "extends", you can include config objects that you'd like to extend from directly in the flat config array.

Please see the following page for more information:
https://eslint.org/docs/latest/use/configure/migration-guide#predefined-configs

What did you expect to happen?

The correct documentation URL is https://eslint.org/docs/latest/use/configure/migration-guide#predefined-and-shareable-configs

What actually happened?

The given documentation URL is https://eslint.org/docs/latest/use/configure/migration-guide#predefined-configs

Link to Minimal Reproducible Example

https://127.0.0.0/#see-configuration-file-given-above

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

This is simply an issue with a string somewhere in the error's creation, presumably because the documentation has changed since this error was implemented.

@WillsterJohnson WillsterJohnson added bug ESLint is working incorrectly repro:needed labels Aug 13, 2023
@WillsterJohnson WillsterJohnson changed the title Bug: Incorrect documentation URL in error Bug(trivial): Incorrect documentation URL in error Aug 13, 2023
@Rec0iL99
Copy link
Member

Rec0iL99 commented Aug 13, 2023

Hi @WillsterJohnson, thanks for the issue. I was able to reproduce the bad doc link in the error message. I guess we forgot to update the link in the error message too when we updated the doc heading in #17399.

@snitin315 snitin315 self-assigned this Aug 14, 2023
@fasttime fasttime added the accepted There is consensus among the team that this change meets the criteria for inclusion label Aug 14, 2023
@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators Feb 11, 2024
@eslint-github-bot eslint-github-bot bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly repro:yes
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants