Upgrade Prettier to support BigInt syntax in TS

This commit is contained in:
Ryan Dahl 2018-11-30 18:41:33 -05:00
parent 3846384888
commit b7178e1704
4 changed files with 7 additions and 7 deletions

View file

@ -180,8 +180,8 @@ export class Compiler
return this._moduleMetaDataMap.has(fileName)
? this._moduleMetaDataMap.get(fileName)
: fileName.startsWith(ASSETS)
? this._resolveModule(fileName, "")
: undefined;
? this._resolveModule(fileName, "")
: undefined;
}
/** Given a `moduleSpecifier` and `containingFile` retrieve the cached

View file

@ -117,8 +117,8 @@ export class URLSearchParams {
* searchParams.sort();
*/
sort(): void {
this.params = this.params.sort(
(a, b) => (a[0] === b[0] ? 0 : a[0] > b[0] ? 1 : -1)
this.params = this.params.sort((a, b) =>
a[0] === b[0] ? 0 : a[0] > b[0] ? 1 : -1
);
}