39 lines
1.5 KiB
JavaScript
39 lines
1.5 KiB
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 },
|
||
|
],
|
||
|
"@typescript-eslint/ban-ts-comment": "off",
|
||
|
"@typescript-eslint/no-empty-function": "off",
|
||
|
"@typescript-eslint/no-empty-interface": "off",
|
||
|
"@typescript-eslint/no-explicit-any": "off",
|
||
|
"@typescript-eslint/no-floating-promises": "off",
|
||
|
"@typescript-eslint/no-inferrable-types": "off",
|
||
|
"@typescript-eslint/no-misused-promises": "off",
|
||
|
"@typescript-eslint/no-non-null-assertion": "off",
|
||
|
"@typescript-eslint/no-unsafe-argument": "off",
|
||
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
||
|
"@typescript-eslint/no-unsafe-call": "off",
|
||
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
||
|
"@typescript-eslint/no-unused-vars": "warn",
|
||
|
"@typescript-eslint/require-await": "warn",
|
||
|
"@typescript-eslint/restrict-template-expressions": "off",
|
||
|
"no-debugger": "off",
|
||
|
"no-empty-function": "off",
|
||
|
"no-empty-pattern": "off",
|
||
|
"no-empty": "off",
|
||
|
"prefer-const": "warn",
|
||
|
},
|
||
|
};
|