-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
26 lines (26 loc) · 1.12 KB
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = {
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"@electron-toolkit/eslint-config-ts/recommended",
"@electron-toolkit/eslint-config-prettier",
],
parserOptions: { project: ["./tsconfig.web.json", "./tsconfig.node.json"] },
rules: {
// "react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
// "react/react-in-jsx-scope": "off",
"@typescript-eslint/explicit-function-return-type": "off",
// "react-hooks/rules-of-hooks": "warn",
// "react-hooks/exhaustive-deps": "warn",
// "@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "warn",
// "@typescript-eslint/no-non-null-assertion": "off",
// "@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"prefer-const": "warn",
"@typescript-eslint/no-floating-promises": "warn",
},
}