0.21.0 • Published 8 days ago

prettier-plugin-hermes-parser v0.21.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days ago

prettier-plugin-hermes-parser

Hermes parser plugin for Prettier. This plugin enables Prettier to use hermes-parser as it's parser. Since Hermes parser uses C++ compiled to WASM it is significantly faster than alternatives such as flow or babel-flow by as much as 10x.

Usage

More details on using Prettier plugins: https://prettier.io/docs/en/plugins.html#using-plugins

To then use the parser you will need to instruct Prettier to use hermes as the parser for your required files:

// .prettierrc
{
  "plugins": ["prettier-plugin-hermes-parser"],
  "overrides": [
    {
      "files": ["*.js", "*.jsx", "*.flow"],
      "options": {
        "parser": "hermes"
      }
    }
  ]
}

More details on configuring Prettier parsers: https://prettier.io/docs/en/configuration.html#setting-the-parserdocsenoptionshtmlparser-option

0.21.0

8 days ago

0.20.1

2 months ago

0.20.0

2 months ago

0.19.2

3 months ago

0.19.1

3 months ago

0.19.0

3 months ago

0.18.2

5 months ago

0.18.1

5 months ago

0.17.0

7 months ago

0.18.0

5 months ago

0.17.1

6 months ago

0.16.0

8 months ago

0.15.1

9 months ago

0.15.0

10 months ago

0.14.0

10 months ago

0.13.1

11 months ago

0.13.0

11 months ago

0.12.1

11 months ago

0.12.0

12 months ago