-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(javascript): preserve parens for type casting for sub-item #4648
fix(javascript): preserve parens for type casting for sub-item #4648
Conversation
@@ -5,19 +5,39 @@ const assert = require("assert"); | |||
const util = require("../common/util"); | |||
const comments = require("./comments"); | |||
|
|||
function hasClosureCompilerTypeCastComment(text, node, locEnd) { | |||
function hasClosureCompilerTypeCastComment(text, path, locStart, locEnd) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you feel about dropping ClosureCompiler
from this name since it supports TS too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, that syntax seems coming from closure compiler, see microsoft/TypeScript#5158.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Salsa ≠ TypeScript (the language)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What’s Salsa then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, TS support for JS.
This comment has been minimized.
This comment has been minimized.
241: Update dependency prettier to v1.13.6 r=rehandalal a=renovate[bot] This Pull Request updates dependency [prettier](https://github.com/prettier/prettier) from `v1.13.5` to `v1.13.6` <details> <summary>Release Notes</summary> ### [`v1.13.6`](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#​1136) [Compare Source](prettier/prettier@1.13.5...1.13.6) [diff](prettier/prettier@1.13.5...1.13.6) - Upgrade Flow parser to 0.75.0 ([#​4649](`https://github.com/prettier/prettier/pull/4649`) and [#​4727](`https://github.com/prettier/prettier/pull/4727`)) - Preserve type parameters of import-types in TypeScript ([#​4662](`https://github.com/prettier/prettier/pull/4662`)) - Preserve parens for type casting for sub-item ([#​4648](`https://github.com/prettier/prettier/pull/4648`)) --- </details> --- This PR has been generated by [Renovate Bot](https://renovatebot.com). Co-authored-by: Renovate Bot <[email protected]>
This Pull Request updates dependency [prettier](https://github.com/prettier/prettier) from `v1.13.5` to `v1.13.6` <details> <summary>Release Notes</summary> ### [`v1.13.6`](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#​1136) [Compare Source](prettier/prettier@1.13.5...1.13.6) [diff](prettier/prettier@1.13.5...1.13.6) - Upgrade Flow parser to 0.75.0 ([#​4649](`https://github.com/prettier/prettier/pull/4649`) and [#​4727](`https://github.com/prettier/prettier/pull/4727`)) - Preserve type parameters of import-types in TypeScript ([#​4662](`https://github.com/prettier/prettier/pull/4662`)) - Preserve parens for type casting for sub-item ([#​4648](`https://github.com/prettier/prettier/pull/4648`)) --- </details> --- This PR has been generated by [Renovate Bot](https://renovatebot.com).
Fixes #4287