HervéRenault.fr

Logo non-officiel de JavaScript Logo de ESLint

Quand ESlint est trop silencieux dans Vim… (fichier de config manquant)

Je crois que j'ai réussi à faire du code correct du premier coup ✌️ alors qu'en fait il manque le fichier de config de ESlint 😬

J'utilise ESlint principalement dans Vim avec l'extension Vim-ALE qui a l'inconvénient de cacher ce genre de message d'erreur 😱 sous la commande :ALEInfo

Oops! Something went wrong! :(

ESLint: 9.31.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.

C'est tout simplement que j'ai oublié de lancer cette commande : npm init @eslint/config

cf. la doc de ESlint : Getting Started with ESLint