Skip to content

Commit

Permalink
fix: resolução do lint, agora ele está rodando corretamente e gerando…
Browse files Browse the repository at this point in the history
… os warnings e errors corretamente
  • Loading branch information
Gxaite committed Sep 2, 2024
1 parent bc6ecea commit 2cd3af4
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions backend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
import globals from "globals";
import tseslint from "@typescript-eslint/eslint-plugin";
import pluginReact from "eslint-plugin-react";
import globals from 'globals';

export default [
{
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
files: ["**/*.{js,jsx,ts,tsx}"],
languageOptions: {
globals: globals.browser,
sourceType: "module", // Especifica o uso de módulos ES6
},
plugins: {
"@typescript-eslint": tseslint,
"react": pluginReact,
ecmaVersion: 2021,
sourceType: "module",
globals: {
...globals.node,
...globals.es2021,
},
},
rules: {
// Adicione aqui regras personalizadas se necessário
},
},
{
files: ["**/*.js"],
languageOptions: {
sourceType: "commonjs", // Para arquivos .js que usam CommonJS
},
},
...tseslint.configs.recommended,
pluginReact.configs.recommended, // Use as configurações recomendadas
"no-unused-vars": "warn",
"no-console": "off"
}
}
];

0 comments on commit 2cd3af4

Please sign in to comment.