18 lines
708 B
JavaScript
18 lines
708 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: { browser: true, es2022: true },
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: { ecmaVersion: "latest", sourceType: "module", ecmaFeatures: { jsx: true } },
|
|
plugins: ["@typescript-eslint", "react-hooks"],
|
|
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
|
settings: {},
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
"no-empty": ["error", { allowEmptyCatch: true }],
|
|
},
|
|
ignorePatterns: ["build/", "node_modules/", "vite.config.ts"],
|
|
};
|