-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
38 lines (37 loc) · 948 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 = {
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
commonjs: true,
es6: true,
"shared-node-browser": true,
},
plugins: ["@typescript-eslint", "react", "react-hooks"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
],
ignorePatterns: ["dist/**/*"],
rules: {
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-inferrable-types": ["off"],
"@typescript-eslint/no-unused-vars": [
"error",
{
// allow unused args, which is really common in callbacks, and removing
// them doesn't provide much value
args: "none",
// allow this common pattern: `{dropThisKeyFromRest, ...rest} = obj`
ignoreRestSiblings: true,
},
],
"react/prop-types": ["off"],
},
};