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

質問編集履歴

1

ビルド設定を追記

2019/07/26 07:12

投稿

4321bocya
4321bocya

スコア13

title CHANGED
File without changes
body CHANGED
@@ -69,4 +69,81 @@
69
69
  hoge.jsで同じメッセージで怒られます。
70
70
  ```
71
71
  Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
72
+ ```
73
+
74
+ ### ビルド関連
75
+ babel.config.js
76
+ ```js
77
+ module.exports = {
78
+ presets: [
79
+ '@vue/app'
80
+ ]
81
+ }
82
+ ```
83
+ tsconfig.json
84
+ ```json
85
+ {
86
+ "compilerOptions": {
87
+ "target": "esnext",
88
+ "module": "esnext",
89
+ "strict": true,
90
+ "jsx": "preserve",
91
+ "importHelpers": true,
92
+ "moduleResolution": "node",
93
+ "experimentalDecorators": true,
94
+ "esModuleInterop": true,
95
+ "allowSyntheticDefaultImports": true,
96
+ "sourceMap": true,
97
+ "baseUrl": ".",
98
+ "types": [
99
+ "webpack-env"
100
+ ],
101
+ "paths": {
102
+ "@/*": [
103
+ "src/*"
104
+ ]
105
+ },
106
+ "lib": [
107
+ "esnext",
108
+ "dom",
109
+ "dom.iterable",
110
+ "scripthost"
111
+ ]
112
+ },
113
+ "include": [
114
+ "src/**/*.ts",
115
+ "src/**/*.tsx",
116
+ "src/**/*.vue",
117
+ "tests/**/*.ts",
118
+ "tests/**/*.tsx"
119
+ ],
120
+ "exclude": [
121
+ "node_modules"
122
+ ]
123
+ }
124
+
125
+ ```
126
+ telint.json
127
+ ```json
128
+ {
129
+ "defaultSeverity": "warning",
130
+ "extends": [
131
+ "tslint:recommended"
132
+ ],
133
+ "linterOptions": {
134
+ "exclude": [
135
+ "node_modules/**"
136
+ ]
137
+ },
138
+ "rules": {
139
+ "quotemark": [true, "single"],
140
+ "indent": [true, "spaces", 2],
141
+ "interface-name": false,
142
+ "ordered-imports": false,
143
+ "object-literal-sort-keys": false,
144
+ "no-consecutive-blank-lines": false,
145
+ "max-line-length": [true, {"limit": 120, "ignore-pattern": "^import | ^export {(.*?)}"}]
146
+ }
147
+ }
148
+
72
149
  ```