You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The auto-discovery of config files (up the file tree) will not work when using tsfmt within spotless,
228
-
hence you are required to provide resolvable file paths for config files.
229
-
230
-
... or alternatively provide the configuration inline ...
231
-
232
-
```xml
233
-
<configuration>
234
-
<typescript>
235
-
<tsfmt>
236
-
<!-- use (only) one of the following ...File elements to define a config file -->
237
213
<config>
238
214
<indentSize>1</indentSize>
239
215
<convertTabsToSpaces>true</convertTabsToSpaces>
@@ -247,22 +223,22 @@ The auto-discovery of config files (up the file tree) will not work when using t
247
223
</configuration>
248
224
```
249
225
250
-
See [tsfmt's default config settings](https://github.com/vvakame/typescript-formatter/blob/7764258ad42ac65071399840d1b8701868510ca7/lib/utils.ts#L11L32) for what is available.
226
+
Supported config file types are `tsconfigFile`, `tslintFile`, `vscodeFile` and `tsfmtFile`. They are corresponding to the respective
227
+
[tsfmt-parameters](https://github.com/vvakame/typescript-formatter/blob/7764258ad42ac65071399840d1b8701868510ca7/lib/index.ts#L27L34). See [tsfmt's default config settings](https://github.com/vvakame/typescript-formatter/blob/7764258ad42ac65071399840d1b8701868510ca7/lib/utils.ts#L11L32) for what is available.
228
+
229
+
*Please note:*
230
+
The auto-discovery of config files (up the file tree) will not work when using tsfmt within spotless,
231
+
hence you are required to provide resolvable file paths for config files.
251
232
252
233
### Prerequisite: tsfmt requires a working NodeJS version
253
234
254
235
tsfmt is based on NodeJS, so to use it, a working NodeJS installation (especially npm) is required on the host running spotless.
255
236
Spotless will try to auto-discover an npm installation. If that is not working for you, it is possible to directly configure the npm binary to use.
0 commit comments