Skip to content

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

Closed
@WillsterJohnson

Description

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.

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyrepro:yesIssues with a reproducible example

Type

No type

Projects

  • Status

    Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions