Prettier beautifier for Unibeautify
npm install --global @unibeautify/beautifier-prettier
See unibeautify-cli
for details.
Prettier beautifier for Unibeautify
License: MIT License
Prettier beautifier for Unibeautify
npm install --global @unibeautify/beautifier-prettier
See unibeautify-cli
for details.
I guess I'm asking for two things here:
I will gladly accept a stop gap provider for Ruby with a different beautifier over no providers at all.'
However, I think the ability to use all prettier plugins will come in handy.
from their homepage (https://prettier.io/):
See #133 (comment) from @chipco
arrow_parens
end_with_comma
end_with_semicolon
jsx_brackets
object_curly_spacing
quotes
Thinking about the various editors (Atom, Sublime, VS Code) and how they should present options to the user. I've not used Sublime or VS Code and I'm not 100% sure how the integrations with all of the packages will work there. But with Atom Beautify it sounds like the direction we're taking is to have each beautifier be it's own Atom package. So beautifier-prettier here would have to be installed as an Atom package for it to be used by Atom Beautify.
This presents an opportunity to spread the options out per beautifier versus cramming them all into Atom Beautify, so the beautifier-prettier package would show all of the options listed https://github.com/Unibeautify/beautifier-prettier/blob/master/src/index.ts#L11-L60.
I have no idea how to take those options and "look them up" in Unibeautify's OptionsRegistry to get the title, description, etc, so if that's the direction to take I would need some guidance there.
Thoughts/feedback?
See docs:
https://prettier.io/docs/en/options.html#trailing-commas
See code:
https://github.com/Unibeautify/beautifier-prettier/blob/master/src/options.ts#L60-L72
Only supports es5
.
Once Unibeautify/unibeautify#63 is published to npm
dependencies
to beautifier dependencies: [
{
type: DependencyType.Node,
name: "Prettier",
package: "prettier",
}
],
To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:
.travis.yml
If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.
Greenkeeper has checked the engines
key in any package.json
file, the .nvmrc
file, and the .travis.yml
file, if present.
engines
was only updated if it defined a single version, not a range..nvmrc
was updated to Node.js 10.travis.yml
was only changed if there was a root-level node_js
that didn’t already include Node.js 10, such as node
or lts/*
. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.For many simpler .travis.yml
configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
I am using the VS Code extension and every time I format a file it converts the -
to *
which is wrong regarding this issue prettier/prettier#4251. I don't know why it does this, I thought the beautifiers are using the same version as the CLI does, because when I use the prettier CLI with prettier file.md --write
everything is fine.
Prettier: v1.14.3
Unibeautify: v0.6.1
VSCode: 1.28.2
## [1.0.3]
- Updated README
- Moved pre-push to .git
converts to
## [1.0.3]
* Updated README
* Moved pre-push to .git
Config is
{
"Markdown": {
"beautifiers": ["Prettier"],
"wrap_line_length": 80,
"wrap_prose": "always"
}
}
Prettier supports YAML, see https://prettier.io/docs/en/language-support.html
Create prettier option for YAML here: https://github.com/Unibeautify/beautifier-prettier/blob/master/src/options.ts
Adding it YAML to the beautifier here: https://github.com/Unibeautify/beautifier-prettier/blob/master/src/index.ts#L35-L47
I do not really know which option prettier YAML supports, so I think it's try and error?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
prettier
, @types/prettier
)@types/jest
, jest
, ts-jest
)package.json
read-pkg-up ^7.0.0
@types/node 12.20.55
@types/jest 24.9.1
@types/prettier 1.19.1
jest 24.9.0
npm-run-all2 5.0.2
prettier 1.19.1
rimraf 3.0.2
ts-jest 24.3.0
tslint 5.20.1
tslint-clean-code 0.2.10
tslint-microsoft-contrib 6.2.0
typescript 3.9.10
unibeautify 0.17.1
unibeautify >= 0.12.1
prettier ^1.11.1
.travis.yml
node 8
node 10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.