-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
50 lines (50 loc) · 1.33 KB
/
.eslintrc
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
39
40
41
42
43
44
45
46
47
48
49
50
{
"extends": [
"airbnb",
"airbnb-typescript",
"eslint:recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"project": "./tsconfig.json",
"parser": "@typescript-eslint/parser"
},
"rules": {
"arrow-body-style": "off",
"no-plusplus": "off",
"no-undef": "off",
"no-param-reassign": "off",
"react/react-in-jsx-scope": 0,
"import/prefer-default-export": 0,
"react/prop-types": "off",
"react/require-default-props": "off",
"react/no-array-index-key": "off",
"react/jsx-props-no-spreading": "off",
"@typescript-eslint/no-use-before-define": "off",
"react/function-component-definition": 0,
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"no-console": 2,
"consistent-return": "off",
"require-yield": "off",
"@typescript-eslint/no-explicit-any": 2,
"import/no-cycle": "off",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/lines-between-class-members": "off"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"]
}
],
"env": {
"browser": true,
"node": true
}
}