@jterrazz/typescript 10.1.4 → 10.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jterrazz/typescript",
3
- "version": "10.1.4",
3
+ "version": "10.1.5",
4
4
  "license": "MIT",
5
5
  "author": "Jean-Baptiste Terrazzoni <contact@jterrazz.com>",
6
6
  "repository": {
@@ -126,7 +126,6 @@ export default fragment({
126
126
  'prefer-regexp-exec',
127
127
  'prefer-return-this-type',
128
128
  'prefer-string-starts-ends-with',
129
- 'promise-function-async',
130
129
  'related-getter-setter-pairs',
131
130
  'require-array-sort-compare',
132
131
  'require-await',
@@ -163,6 +162,10 @@ export default fragment({
163
162
  typeAware(),
164
163
  'wraps a returned promise, after which nothing awaits it',
165
164
  ),
165
+ 'typescript/promise-function-async': unsafeFix(
166
+ typeAware(),
167
+ 'wraps a function that hands out an existing promise in `async … await`, so the caller receives a fresh promise nobody has claimed',
168
+ ),
166
169
  'typescript/no-unnecessary-type-assertion': unsafeFix(
167
170
  typeAware(),
168
171
  'drops a cast a widened platform type needs',