質問編集履歴
1
.eslint.jsファイルの記述を追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Firebaseでデプロイ時に
|
1
|
+
Firebaseでデプロイ時に@typescript-eslintが一意ではないというエラーが発生してしまう。
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# 「@typescript-eslintというプラグインが重複している
|
1
|
+
# 「@typescript-eslintというプラグインが重複している」といわれておりますが、どこのどのコードを削除すればいいかわかりません。
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -72,6 +72,162 @@
|
|
72
72
|
|
73
73
|
|
74
74
|
|
75
|
+
|
76
|
+
|
77
|
+
**.eslint.jsファイル↓**
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
module.exports = {
|
82
|
+
|
83
|
+
env: {
|
84
|
+
|
85
|
+
browser: true,
|
86
|
+
|
87
|
+
es6: true,
|
88
|
+
|
89
|
+
node: true,
|
90
|
+
|
91
|
+
},
|
92
|
+
|
93
|
+
extends: [
|
94
|
+
|
95
|
+
"plugin:import/errors",
|
96
|
+
|
97
|
+
"plugin:import/warnings",
|
98
|
+
|
99
|
+
],
|
100
|
+
|
101
|
+
parser: "@typescript-eslint/parser",
|
102
|
+
|
103
|
+
parserOptions: {
|
104
|
+
|
105
|
+
project: "tsconfig.json",
|
106
|
+
|
107
|
+
sourceType: "module",
|
108
|
+
|
109
|
+
},
|
110
|
+
|
111
|
+
plugins: [
|
112
|
+
|
113
|
+
"@typescript-eslint",
|
114
|
+
|
115
|
+
"import",
|
116
|
+
|
117
|
+
],
|
118
|
+
|
119
|
+
rules: {
|
120
|
+
|
121
|
+
"@typescript-eslint/adjacent-overload-signatures": "error",
|
122
|
+
|
123
|
+
"@typescript-eslint/no-empty-function": "error",
|
124
|
+
|
125
|
+
"@typescript-eslint/no-empty-interface": "warn",
|
126
|
+
|
127
|
+
"@typescript-eslint/no-floating-promises": "error",
|
128
|
+
|
129
|
+
"@typescript-eslint/no-namespace": "error",
|
130
|
+
|
131
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
132
|
+
|
133
|
+
"@typescript-eslint/prefer-for-of": "warn",
|
134
|
+
|
135
|
+
"@typescript-eslint/triple-slash-reference": "error",
|
136
|
+
|
137
|
+
"@typescript-eslint/unified-signatures": "warn",
|
138
|
+
|
139
|
+
"comma-dangle": "warn",
|
140
|
+
|
141
|
+
"constructor-super": "error",
|
142
|
+
|
143
|
+
eqeqeq: ["warn", "always"],
|
144
|
+
|
145
|
+
"import/no-deprecated": "warn",
|
146
|
+
|
147
|
+
"import/no-extraneous-dependencies": "error",
|
148
|
+
|
149
|
+
"import/no-unassigned-import": "warn",
|
150
|
+
|
151
|
+
"no-cond-assign": "error",
|
152
|
+
|
153
|
+
"no-duplicate-case": "error",
|
154
|
+
|
155
|
+
"no-duplicate-imports": "error",
|
156
|
+
|
157
|
+
"no-empty": [
|
158
|
+
|
159
|
+
"error",
|
160
|
+
|
161
|
+
{
|
162
|
+
|
163
|
+
allowEmptyCatch: true,
|
164
|
+
|
165
|
+
},
|
166
|
+
|
167
|
+
],
|
168
|
+
|
169
|
+
"no-invalid-this": "error",
|
170
|
+
|
171
|
+
"no-new-wrappers": "error",
|
172
|
+
|
173
|
+
"no-param-reassign": "error",
|
174
|
+
|
175
|
+
"no-redeclare": "error",
|
176
|
+
|
177
|
+
"no-sequences": "error",
|
178
|
+
|
179
|
+
"no-shadow": [
|
180
|
+
|
181
|
+
"error",
|
182
|
+
|
183
|
+
{
|
184
|
+
|
185
|
+
hoist: "all",
|
186
|
+
|
187
|
+
},
|
188
|
+
|
189
|
+
],
|
190
|
+
|
191
|
+
"no-throw-literal": "error",
|
192
|
+
|
193
|
+
"no-unsafe-finally": "error",
|
194
|
+
|
195
|
+
"no-unused-labels": "error",
|
196
|
+
|
197
|
+
"no-var": "warn",
|
198
|
+
|
199
|
+
"no-void": "error",
|
200
|
+
|
201
|
+
"prefer-const": "warn",
|
202
|
+
|
203
|
+
},
|
204
|
+
|
205
|
+
settings: {
|
206
|
+
|
207
|
+
jsdoc: {
|
208
|
+
|
209
|
+
tagNamePreference: {
|
210
|
+
|
211
|
+
returns: "return",
|
212
|
+
|
213
|
+
},
|
214
|
+
|
215
|
+
},
|
216
|
+
|
217
|
+
},
|
218
|
+
|
219
|
+
};
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
```
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
75
231
|
ググっても同じような事例をみつけられず、、、迷走してしまっています。
|
76
232
|
|
77
233
|
|