teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

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

2019/01/31 11:40

投稿

HillTop
HillTop

スコア22

title CHANGED
File without changes
body CHANGED
@@ -101,6 +101,7 @@
101
101
 
102
102
  tslint.json(下記パスにのみ存在しました)
103
103
  node_modules/@Vue/cli-plugin-typescript/lib/tslint.json
104
+ ※ 本プロジェクトはVue CLI 3で作成しています。
104
105
  ```JSON
105
106
  <%_ if (options.tsLint) { _%>
106
107
  {

2

編集・追記依頼への対応

2019/01/31 11:40

投稿

HillTop
HillTop

スコア22

title CHANGED
File without changes
body CHANGED
@@ -53,4 +53,75 @@
53
53
  ...
54
54
  "typescript": "^3.0.0",
55
55
  ...
56
+ ```
57
+
58
+ プロジェクト直下/tsconfig.json
59
+ ```Json
60
+ {
61
+ "compilerOptions": {
62
+ "target": "esnext",
63
+ "module": "esnext",
64
+ "strict": true,
65
+ "jsx": "preserve",
66
+ "importHelpers": true,
67
+ "moduleResolution": "node",
68
+ "experimentalDecorators": true,
69
+ "esModuleInterop": true,
70
+ "allowSyntheticDefaultImports": true,
71
+ "sourceMap": true,
72
+ "baseUrl": ".",
73
+ "types": [
74
+ "webpack-env"
75
+ ],
76
+ "typeRoots" : ["src/@types"],
77
+ "paths": {
78
+ "@/*": [
79
+ "src/*"
80
+ ]
81
+ },
82
+ "lib": [
83
+ "esnext",
84
+ "dom",
85
+ "dom.iterable",
86
+ "scripthost"
87
+ ]
88
+ },
89
+ "include": [
90
+ "src/**/*.ts",
91
+ "src/**/*.tsx",
92
+ "src/**/*.vue",
93
+ "tests/**/*.ts",
94
+ "tests/**/*.tsx"
95
+ ],
96
+ "exclude": [
97
+ "node_modules"
98
+ ]
99
+ }
100
+ ```
101
+
102
+ tslint.json(下記パスにのみ存在しました)
103
+ node_modules/@Vue/cli-plugin-typescript/lib/tslint.json
104
+ ```JSON
105
+ <%_ if (options.tsLint) { _%>
106
+ {
107
+ "defaultSeverity": "warning",
108
+ "extends": [
109
+ "tslint:recommended"
110
+ ],
111
+ "linterOptions": {
112
+ "exclude": [
113
+ "node_modules/**"
114
+ ]
115
+ },
116
+ "rules": {
117
+ "quotemark": [true, "single"],
118
+ "indent": [true, "spaces", 2],
119
+ "interface-name": false,
120
+ "ordered-imports": false,
121
+ "object-literal-sort-keys": false,
122
+ "no-consecutive-blank-lines": false
123
+ }
124
+ }
125
+ <%_ } _%>
126
+
56
127
  ```

1

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

2019/01/31 11:32

投稿

HillTop
HillTop

スコア22

title CHANGED
File without changes
body CHANGED
@@ -44,7 +44,7 @@
44
44
  ```
45
45
  エラーメッセージ
46
46
  ```WebStorm
47
- Initializer type Promise<void>[] is not assignable to variable type Promise<void>[]
47
+ Initializer type Promise<any>[] is not assignable to variable type Promise[]
48
48
  ```
49
49
 
50
50
  ### 補足情報(FW/ツールのバージョンなど)