Skip to content

Commit cb661b7

Browse files
committed
updating documentation for custom tsfmt/prettier versions
1 parent 39e9796 commit cb661b7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

plugin-gradle/CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
**WARNING: xml formatter in this version may be vulnerable to XXE attacks (see [#358](https://github.com/diffplug/spotless/issues/358)).**
66

7+
* Making npm package versions of [`prettier`](https://prettier.io/) and [`tsfmt`](https://github.com/vvakame/typescript-formatter) (and its internally used npm packages) configurable. ([#363](https://github.com/diffplug/spotless/pull/363))
8+
* Updated default npm package version of `prettier` from 1.13.4 to 1.16.4
9+
* Updated default npm package version of internally used typescript package from 2.9.2 to 3.3.3 and tslint package from 5.1.0 to 5.12.0 (both used by `tsfmt`)
10+
711
### Version 3.18.0 - February 11th 2018 ([javadoc](https://diffplug.github.io/spotless/javadoc/spotless-plugin-gradle/3.18.0/), [jcenter](https://bintray.com/diffplug/opensource/spotless-plugin-gradle/3.18.0))
812

913
**WARNING: xml formatter in this version may be vulnerable to XXE attacks (see [#358](https://github.com/diffplug/spotless/issues/358)).**

plugin-gradle/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ spotless {
347347
typescript {
348348
// using existing config files
349349
tsfmt().tslintFile('/path/to/repo/tslint.json')
350+
// tsfmt('7.2.2') to specify specific version of tsfmt
351+
// tsfmt(formatterVersion: '7.2.2', typescriptVersion: '3.3.3', tslintVersion: '5.12.1') to specify specific versions of tsfmt and internal packages
350352
}
351353
}
352354
```
@@ -404,6 +406,7 @@ spotless {
404406
405407
// at least provide the parser to use
406408
prettier().config(['parser': 'postcss'])
409+
// prettier('1.16.4') to specify specific version of prettier
407410
408411
// or provide a typical filename
409412
prettier().config(['filepath': 'style.scss'])

0 commit comments

Comments
 (0)