discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API
https://discord.js.org
Apache License 2.0
25.44k stars 3.97k forks source link

"Setting up ESLint rules" is outdated #10494

Closed ikelax closed 2 months ago

ikelax commented 2 months ago

Which application is this bug report for?

Guide

Issue description

The flat config file format has been the default configuration file format since ESLint v9.0.0. In the guide, which is really helpful and well-written by the way, the configuration is still described for the deprecated eslintrc format.

Therefore, this section should be updated or at least it should be mentioned that the eslintrc format has to be enabled since v9.0.0 by setting ESLINT_USE_FLAT_CONFIG environment variable to false (see here).

Steps to Reproduce

  1. Visit Setting up ESLInt rules in the guide.
  2. Read the section.

Versions

Issue priority

Low (slightly annoying)

ikelax commented 2 months ago

I would like to work on this and update the section in the guide.

Jiralite commented 2 months ago

Duplicate of https://github.com/discordjs/guide/issues/1568.