Comments (3)
The beautifier specific options will be exposed by unibeautify-beautifier wrapper, depending on the environment (e.g. Atom). See https://github.com/Unibeautify/unibeautify-beautifier/blob/master/src/beautifier.ts#L46
This works for Atom because it has a Services API: http://blog.atom.io/2015/03/25/new-services-API.html
However, VS Code and Sublime do not have such a feature. I was thinking we would utilize some form of discovery like https://github.com/Unibeautify/unibeautify-cli uses. Similar to Atom users installing individual beautifiers as Atom/apm packages, VS Code and Sublime users would install the Node.js/npm version of the beautifiers package and use those.
Here's some documentation on the available options per beautifier: https://unibeautify.github.io/docs/beautifier-prettier.html
Unibeautify itself will have a new configuration file format, .unibeautifyrc
(using https://github.com/davidtheclark/cosmiconfig ) and will include choosing which beautifiers to apply.
Atom will have a GUI (with https://atom.io/packages/settings-view ).
VS Code will provide contributes.configuration
: https://code.visualstudio.com/docs/extensionAPI/extension-points#_contributesconfiguration
Not sure what Sublime convention is.
from beautifier-prettier.
OK got it. For populating the config const in each of the individual beautifiers, is there a method that does that yet?
from beautifier-prettier.
Not yet. This still needs to be designed and developed.
from beautifier-prettier.
Related Issues (20)
- Add Prose Wrap option HOT 2
- Prettier formats lists wrong HOT 4
- Support YAML HOT 3
- Support HTML HOT 5
- Support YAML
- Can we use prettier plugins (such as https://github.com/prettier/plugin-ruby) HOT 3
- Dependency Dashboard
- Add Semicolons option HOT 2
- How to use `trailingComma: "all"`? HOT 2
- Add dependencies property to beautifier
- Add Quotes option HOT 1
- Version 10 of node.js has been released
- Add Trailing Commas HOT 1
- Add Bracket Spacing option HOT 2
- Add JSX Brackets option HOT 1
- Add Arrow Function Parentheses option HOT 2
- Add Require Pragma option HOT 1
- Add Insert Pragma option HOT 1
- Remove options which are not actually supported by language
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beautifier-prettier.