/** @type {import('eslint').Linter.Config} */ module.exports = { root: true, env: { browser: true, es2021: true }, parser: "@typescript-eslint/parser", parserOptions: { ecmaVersion: "latest", sourceType: "module" }, plugins: ["@typescript-eslint", "react-refresh", "react-hooks"], extends: [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended", "prettier" ], rules: { "react-refresh/only-export-components": [ "warn", { allowConstantExport: true } ], "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }] } };