Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

prettier-plugin-hermes-parser

facebook507kMIT0.32.0

Hermes parser plugin for Prettier.

readme

prettier-plugin-hermes-parser

Hermes parser plugin for Prettier. Unless you want to be on the bleeding edge, you should use the official @prettier/plugin-hermes instead.

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

changelog

0.32.0

  • Support opaque type with both lower and upper bounds with super and extends syntax.

0.31.1

  • Rebuild based on @prettier/plugin-hermes. There should be no formatting differences, but it will be less buggy.

Previous Versions

For versions before 0.31.1, see hermes-parser changelog.