-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.json
107 lines (107 loc) · 2.83 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"extends": ["airbnb-base", "airbnb-typescript/base", "eslint-config-next"],
"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": {
"arrow-body-style": "off",
"no-console": "off",
"function-paren-newline": "off",
"no-confusing-arrow": "off",
"operator-linebreak": "off",
"react/no-unescaped-entities": "off",
"implicit-arrow-linebreak": "off",
"object-curly-newline": "off",
"linebreak-style": "off",
"no-plusplus": "off",
"no-unused-vars": "off",
"prefer-destructuring": "warn",
"import/no-useless-path-segments": "off",
"unused-imports/no-unused-imports": "error",
"class-methods-use-this": "off",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"quotes": [
"error",
"double",
{
"allowTemplateLiterals": true
}
],
"no-tabs": "off",
"max-classes-per-file": "off",
"radix": 0,
"max-len": [
"error",
{
"code": 150,
"comments": 250,
"ignoreStrings": true,
"ignoreTrailingComments": true
}
],
"consistent-return": "warn",
"no-restricted-properties": "off",
"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": [
"off",
{
"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
}
}