-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
38 lines (38 loc) · 1018 Bytes
/
.eslintrc.js
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
38
module.exports = {
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"prettier",
],
overrides: [
{
files: ["*.d.ts"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
},
},
],
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
plugins: ["react", "@typescript-eslint"],
rules: {
// These on-by-default (via plugins) rules are irksome and we don't want them
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"react/display-name": "off",
"react/prop-types": "off",
},
settings: {
react: {
version: "detect",
},
},
};