Files
web-menu-react-version-/.eslintrc.cjs
2025-10-04 18:22:24 +03:00

25 lines
780 B
JavaScript

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"] }],
},
};