Skip to content

Commit

Permalink
Upgrade Prettier to support BigInt syntax in TS
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Dec 1, 2018
1 parent 3846384 commit b7178e1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions js/url_search_params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"devDependencies": {
"@types/base64-js": "^1.2.5",
"@types/flatbuffers": "^1.9.0",
"@types/prettier": "^1.13.2",
"@types/prettier": "=1.15.3",
"@types/source-map-support": "^0.4.1",
"@types/text-encoding": "0.0.33",
"base64-js": "^1.3.0",
"flatbuffers": "^1.9.0",
"magic-string": "^0.22.5",
"prettier": "^1.14.0",
"prettier": "=1.15.3",
"rollup": "0.67.0",
"rollup-plugin-alias": "^1.4.0",
"rollup-plugin-analyzer": "^2.1.0",
Expand Down

0 comments on commit b7178e1

Please sign in to comment.