Giter VIP home page Giter VIP logo

Comments (3)

Glavin001 avatar Glavin001 commented on September 22, 2024

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.

stevenzeck avatar stevenzeck commented on September 22, 2024

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.

Glavin001 avatar Glavin001 commented on September 22, 2024

Not yet. This still needs to be designed and developed.

from beautifier-prettier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.