module.exports = { parser: "@typescript-eslint/parser", parserOptions: { project: "./tsconfig.json", tsconfigRootDir: __dirname, }, settings: { react: { version: "detect", }, }, plugins: ["@typescript-eslint", "react", "react-hooks", "import"], extends: [ "plugin:@typescript-eslint/recommended", "plugin:react/recommended", "prettier", "prettier/@typescript-eslint", ], rules: { "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": "warn", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/no-use-before-define": ["error", { functions: false }], "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }], "@typescript-eslint/no-empty-function": "off", "import/extensions": ["error", "always"], }, }