module.exports = { root: true, env: { browser: true, es2020: true }, extends: [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended", ], ignorePatterns: ["dist", ".eslintrc.cjs"], parser: "@typescript-eslint/parser", plugins: ["react-refresh"], rules: { "react-refresh/only-export-components": [ "warn", { allowConstantExport: true }, ], "react-hooks/rules-of-hooks": "error", // Checks rules of Hooks "react/require-default-props": "off", "no-use-before-define": "off", "@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/ban-ts-comment": "warn", "no-param-reassign": ["warn", { "props": true, "ignorePropertyModificationsFor": ["state"] }], }, };