Code Monkey home page Code Monkey logo

Comments (3)

brodybits avatar brodybits commented on July 17, 2024

I think the ultimate design would be a pipeline-based toolset which uses the Acorn parser data structure, which seems to be how Babel JS works. I really like the general design of remark (https://remark.js.org/), which does Markdown processing in a set of plugins and is based on unifiedjs (https://unified.js.org/).

A step further may be to use a Flow Based Programming paradigm, like they did in noflo/noflo-jekyll (see this article and duplicate article on dzone).

from prettierx.

brodybits avatar brodybits commented on July 17, 2024

I made a couple of Prettier plugins that can use this formatter, with the new formatting options in this package from a configuration file:

Next step: support using Babel parser with TypeScript, as proposed in prettier/prettier#6400

I suggested in idea in prettier/prettier#6888 to support use of the standard (Microsoft) TypeScript implementation by moving it out to a plugin, rather than bundling it with Prettier itself. (As I said in #48, I do not bundle TypeScript parser with this package anymore.) Next step would be to demonstrate using Babel TypeScript parser from a plugin.

from prettierx.

brodybits avatar brodybits commented on July 17, 2024

New Prettier plugin working with both Babel & TypeScript: https://github.com/brodybits/prettier-plugin-x

This project shows eslint, Prettier, eslint-config-standard for "Standard JS" formatting, and prettier-plugin-x with prettierx formatting options all working together: https://github.com/brodybits/react-native-module-init

Documentation needs to be updated.

from prettierx.

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.