We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Prettier 2.6.2 Playground link
# Options (if any):
Input:
import { xyz as xyz } from 'xyz' var o = { a: a, b: b, c: c }; export { foo as foo }
Output:
Expected behavior:
import { xyz } from 'xyz' var o = { a, b, c }; export { foo }
Given
{ X }
When
<F2>
Becomes
{ Y: Y }
{ Y as Y }
Would be nice if prettier can make them shorthand again, as short-handify after rename-reference is not part of language server protocol.
prettier
short-handify
rename-reference
https://babeljs.io/docs/en/babel-plugin-transform-shorthand-properties
The text was updated successfully, but these errors were encountered:
Prettier generally doesn't do things like this. See https://prettier.io/docs/en/rationale.html#what-prettier-is-_not_-concerned-about I'd recommend using ESLint. See https://eslint.org/docs/latest/rules/object-shorthand
Sorry, something went wrong.
No branches or pull requests
Prettier 2.6.2
Playground link
# Options (if any):
Input:
Output:
Expected behavior:
Situation
Given
{ X }
When
<F2>
twice to rename referenceBecomes
{ Y: Y }
or{ Y as Y }
.Why
Would be nice if
prettier
can make them shorthand again, asshort-handify
afterrename-reference
is not part of language server protocol.Related Doc
https://babeljs.io/docs/en/babel-plugin-transform-shorthand-properties
The text was updated successfully, but these errors were encountered: