質問編集履歴

3

Vue CLI 3で作成している旨の追記

2019/01/31 11:40

投稿

HillTop
HillTop

スコア22

test CHANGED
File without changes
test CHANGED
@@ -204,6 +204,8 @@
204
204
 
205
205
  node_modules/@Vue/cli-plugin-typescript/lib/tslint.json
206
206
 
207
+ ※ 本プロジェクトはVue CLI 3で作成しています。
208
+
207
209
  ```JSON
208
210
 
209
211
  <%_ if (options.tsLint) { _%>

2

編集・追記依頼への対応

2019/01/31 11:40

投稿

HillTop
HillTop

スコア22

test CHANGED
File without changes
test CHANGED
@@ -109,3 +109,145 @@
109
109
  ...
110
110
 
111
111
  ```
112
+
113
+
114
+
115
+ プロジェクト直下/tsconfig.json
116
+
117
+ ```Json
118
+
119
+ {
120
+
121
+ "compilerOptions": {
122
+
123
+ "target": "esnext",
124
+
125
+ "module": "esnext",
126
+
127
+ "strict": true,
128
+
129
+ "jsx": "preserve",
130
+
131
+ "importHelpers": true,
132
+
133
+ "moduleResolution": "node",
134
+
135
+ "experimentalDecorators": true,
136
+
137
+ "esModuleInterop": true,
138
+
139
+ "allowSyntheticDefaultImports": true,
140
+
141
+ "sourceMap": true,
142
+
143
+ "baseUrl": ".",
144
+
145
+ "types": [
146
+
147
+ "webpack-env"
148
+
149
+ ],
150
+
151
+ "typeRoots" : ["src/@types"],
152
+
153
+ "paths": {
154
+
155
+ "@/*": [
156
+
157
+ "src/*"
158
+
159
+ ]
160
+
161
+ },
162
+
163
+ "lib": [
164
+
165
+ "esnext",
166
+
167
+ "dom",
168
+
169
+ "dom.iterable",
170
+
171
+ "scripthost"
172
+
173
+ ]
174
+
175
+ },
176
+
177
+ "include": [
178
+
179
+ "src/**/*.ts",
180
+
181
+ "src/**/*.tsx",
182
+
183
+ "src/**/*.vue",
184
+
185
+ "tests/**/*.ts",
186
+
187
+ "tests/**/*.tsx"
188
+
189
+ ],
190
+
191
+ "exclude": [
192
+
193
+ "node_modules"
194
+
195
+ ]
196
+
197
+ }
198
+
199
+ ```
200
+
201
+
202
+
203
+ tslint.json(下記パスにのみ存在しました)
204
+
205
+ node_modules/@Vue/cli-plugin-typescript/lib/tslint.json
206
+
207
+ ```JSON
208
+
209
+ <%_ if (options.tsLint) { _%>
210
+
211
+ {
212
+
213
+ "defaultSeverity": "warning",
214
+
215
+ "extends": [
216
+
217
+ "tslint:recommended"
218
+
219
+ ],
220
+
221
+ "linterOptions": {
222
+
223
+ "exclude": [
224
+
225
+ "node_modules/**"
226
+
227
+ ]
228
+
229
+ },
230
+
231
+ "rules": {
232
+
233
+ "quotemark": [true, "single"],
234
+
235
+ "indent": [true, "spaces", 2],
236
+
237
+ "interface-name": false,
238
+
239
+ "ordered-imports": false,
240
+
241
+ "object-literal-sort-keys": false,
242
+
243
+ "no-consecutive-blank-lines": false
244
+
245
+ }
246
+
247
+ }
248
+
249
+ <%_ } _%>
250
+
251
+
252
+
253
+ ```

1

エラーメッセージが誤っていたので修正

2019/01/31 11:32

投稿

HillTop
HillTop

スコア22

test CHANGED
File without changes
test CHANGED
@@ -90,7 +90,7 @@
90
90
 
91
91
  ```WebStorm
92
92
 
93
- Initializer type Promise<void>[] is not assignable to variable type Promise<void>[]
93
+ Initializer type Promise<any>[] is not assignable to variable type Promise[]
94
94
 
95
95
  ```
96
96