Tentei as sugestões renomear eslint.config. js para eslint.config.json e colar o conteúdo :
import globals from "globals";
import pluginJs from "@eslint/js";
export default [
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
rules: {
indent: ["error", 2],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
},
},
pluginJs.configs.recommended,
];
sem sucesso...