-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
153 lines (153 loc) · 4.09 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "jsdoc", "header"],
"extends": [
"plugin:jsx-a11y/recommended",
"next/core-web-vitals",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsdoc/recommended"
],
"rules": {
"no-console": ["error", { "allow": ["error"] }],
"no-undef": "error",
"no-undefined": "error",
"curly": "error",
"eqeqeq": ["error", "allow-null"],
"new-cap": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 }],
"prefer-spread": "error",
"react/button-has-type": "error",
"react/no-unused-prop-types": 2,
"react/no-unused-class-component-methods": 2,
"react/no-unknown-property": 2,
"react/prop-types": 2,
"react/self-closing-comp": [
"error",
{
"component": true,
"html": true
}
],
"react/sort-prop-types": 2,
"wrap-iife": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"max-len": ["off"],
"no-param-reassign": "error",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"object-curly-spacing": ["error", "always"],
"react/destructuring-assignment": 2,
"react/no-array-index-key": "error",
"react/no-danger": "error",
"react/forbid-prop-types": "error",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/jsx-filename-extension": [
1,
{ "extensions": [".js", ".jsx", ".tsx"] }
],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-no-constructed-context-values": "error",
"react/default-props-match-prop-types": 2,
"react/sort-comp": [
2,
{
"order": [
"static-methods",
"lifecycle",
"/^on.+$/",
"everything-else",
"render"
]
}
],
"no-extra-semi": "off",
"no-unused-vars": ["error", { "args": "all" }],
"no-unused-expressions": "off",
"semi": "off",
"import/extensions": 0,
"jsdoc/require-jsdoc": [
"error",
{
"enableFixer": true,
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}
],
"jsdoc/sort-tags": "error",
"header/header": [
2,
"line",
[" Copyright (c) Gridiron Survivor.", " Licensed under the MIT License."],
2
],
"jsdoc/require-param-name": [
"error",
{
"contexts": [
"ArrowFunctionExpression",
"ClassDeclaration",
"ClassExpression",
"ClassProperty",
"FunctionDeclaration",
"FunctionExpression",
"MethodDefinition",
"TSDeclareFunction",
"TSEnumDeclaration",
"TSInterfaceDeclaration",
"TSModuleDeclaration",
"TSTypeAliasDeclaration",
"VariableDeclaration"
]
}
],
"jsdoc/require-description": 2,
"jsdoc/require-param": 2,
"jsdoc/require-param-description": 2,
"jsdoc/require-param-type": 0,
"jsdoc/require-returns": 2,
"jsdoc/require-returns-check": 2,
"jsdoc/require-returns-description": 2,
"jsdoc/require-returns-type": 0,
"jsdoc/require-property-name": 2,
"jsdoc/require-property-type": 0,
"jsdoc/no-types": 0,
"jsdoc/valid-types": 2,
"@typescript-eslint/explicit-function-return-type": "error"
},
"overrides": [
{
"files": ["**/*.enum.*"],
"rules": {
"no-unused-vars": "off"
}
},
{
"files": ["playwright.config.ts"],
"rules": {
"no-undefined": "off"
}
},
{
"files": ["functions/userAuth.js"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-var-requires": "off"
}
}
]
}