certimate/ui/.eslintrc.cjs
2024-12-19 11:59:13 +08:00

25 lines
593 B
JavaScript

/**
* @type {import("eslint").Linter.Config}
*/
module.exports = {
root: true,
env: {
browser: true,
node: true,
es2020: true,
},
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "plugin:react-hooks/recommended"],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh"],
rules: {
"@typescript-eslint/no-explicit-any": "warn",
"react-refresh/only-export-components": [
"warn",
{
allowConstantExport: true,
},
],
},
};