discordjs / guide

The official guide for discord.js, created and maintained by core members of its community.
https://discordjs.guide
MIT License
1.57k stars 2.31k forks source link

Setting up a linter isn't work since ^9.0.0 #1568

Open thiendaovotran opened 4 months ago

thiendaovotran commented 4 months ago

Describe the bug

Following up the guide I have discovered that from version 9, there are few change in ESLint which will require to migration from .eslintrc.json to eslint.config.js. Downgrade to version 8 (^.8.56.0) seem to be fine or perform migration on your own following the guide. But I think we should have the update on this.

Oops! Something went wrong! :(

ESLint: 9.6.0

ESLint couldn't find an eslint.config.(js|mjs|cjs) file.

From ESLint v9.0.0, the default configuration file is now eslint.config.js.
If you are using a .eslintrc.* file, please follow the migration guide
to update your configuration file to the new format:

https://eslint.org/docs/latest/use/configure/migration-guide

If you still have problems after following the migration guide, please stop by
https://eslint.org/chat/help to chat with the team.

To Reproduce

  1. Go to Guide
  2. Following up the guide until section Setting up a linter
  3. Try to run npx eslint . for example
  4. Got the error

Screenshots

No response

Device (please complete the following information)

Additional notes

No response

imnaiyar commented 4 months ago

There's already a pr for this #1557