-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
91 lines (91 loc) · 2.51 KB
/
.eslintrc.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"extends": "airbnb-typescript",
"env": {
"browser": true
},
"parserOptions": {
"project": "./tsconfig.json",
"createDefaultProgram": true
},
"plugins": [
"prettier",
"react",
"jest",
"jest-dom",
"@typescript-eslint",
"react-hooks",
"eslint-plugin-jsx-a11y",
"unused-imports"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
// EsLint Rules
"no-plusplus": "off",
"no-unused-vars": "off",
"prefer-destructuring": "warn",
"import/no-useless-path-segments": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"indent": [2, "tab", { "SwitchCase": 1 }],
"no-tabs": "off",
"max-classes-per-file": "off",
"radix": 0,
"max-len": [
"error",
{
"code": 150,
"comments": 250,
"ignoreStrings": true,
"ignoreTrailingComments": true
}
],
"consistent-return": "off",
"no-restricted-properties": "off",
"operator-linebreak": ["error", "after"],
"no-use-before-define": "off",
"no-mixed-spaces-and-tabs": "off",
"no-param-reassign": "off",
"no-nested-ternary": "warn",
"import/prefer-default-export": "off",
// Jsx a11y Rules
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/control-has-associated-label": "off",
// Typescript Rules
"@typescript-eslint/no-unused-vars": [
"error",
{ "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }
],
"@typescript-eslint/quotes": "off",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/lines-between-class-members": "off",
// React Rules
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/destructuring-assignment": "off",
"react/jsx-no-bind": "off",
"react/jsx-indent": 0,
"react/jsx-indent-props": 0,
"react/no-array-index-key": 0,
"react/require-default-props": 0
}
}