-
Notifications
You must be signed in to change notification settings - Fork 83
/
.eslintrc.cjs
37 lines (37 loc) · 1 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
27
28
29
30
31
32
33
34
35
36
37
/**
* @type {import('@types/eslint').Linter.BaseConfig}
*/
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier",
],
env: {
node: true,
},
plugins: ["@typescript-eslint", "react"],
settings: {
react: {
version: "detect",
},
},
rules: {
"no-unused-vars": "off",
"no-inner-declarations": "off",
"no-var": "off",
"prefer-const": "off",
"react/react-in-jsx-scope": "off", // Not needed in modern React
"react/prop-types": "off", // We use TypeScript instead
"react/no-unescaped-entities": "off",
"react/no-children-prop": "off",
"react/no-unknown-property": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-types": "off",
},
};