diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js index 346cf21d..88279948 100644 --- a/frontend/eslint.config.js +++ b/frontend/eslint.config.js @@ -4,6 +4,9 @@ import globals from "globals"; import tseslint from "typescript-eslint"; export default defineConfig([ + { + ignores: ["build/**", "dist/**", "node_modules/**"], + }, { files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"], languageOptions: { globals: globals.browser }, @@ -15,4 +18,17 @@ export default defineConfig([ }, tseslint.configs.recommended, pluginReact.configs.flat.recommended, + pluginReact.configs.flat["jsx-runtime"], + { + rules: { + "@typescript-eslint/no-unused-vars": [ + "error", + { + argsIgnorePattern: "^_", + varsIgnorePattern: "^_", + caughtErrorsIgnorePattern: "^_", + }, + ], + }, + }, ]);