Skip to content

aMarCruz/prettier

Repository files navigation

Fake Prettier

This package allows to use Prettierx instead Prettier for packages that not supports Prettierx.

Good examples are prettier-eslint and the VS Code Prettier extension.

You can use it also with eslint-plugin-prettierx.

Setup

Install aMarCruz/prettier, as prettierx is a dependency of this you don't need install it:

yarn add aMarCruz/prettier -D
# or
npm i aMarCruz/prettier -D

Schema

If you want to include support for the additional PrettieX options, add the following to the json.schema property in your VS Code settings:

{
  "json.schemas": [
    {
      "fileMatch": [".prettierrc", ".prettierrc.json"],
      "url": "https://cdn.jsdelivr.net/gh/aMarCruz/prettier/schema.json"
    }
  ],
}

License

The MIT license.

About

Prettier(x) is an opinionated code formatter

Resources

License

Stars

Watchers

Forks

Packages

No packages published