mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 13:39:53 +00:00
39 lines
890 B
JavaScript
39 lines
890 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",
|
|
{
|
|
ignoreRestArgs: true,
|
|
},
|
|
],
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
argsIgnorePattern: "^_",
|
|
caughtErrorsIgnorePattern: "^_",
|
|
destructuredArrayIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
"react-refresh/only-export-components": [
|
|
"warn",
|
|
{
|
|
allowConstantExport: true,
|
|
},
|
|
],
|
|
},
|
|
};
|