Skip to content

Ferfalk/prettier-config

Repository files navigation

@ferfalk/prettier-config

Publish NPM Version NPM Downloads Github Repo Size LICENSE Contributors Commit

Shared Prettier configuration.

Installation

npm install --save-dev @ferfalk/prettier-config

Usage

Add the prettier property on package.json:

{
  "prettier": "@ferfalk/prettier-config"
}

Or

Create a .prettierrc file with a string:

"@ferfalk/prettier-config"

Or

To extend the configuration, create a .prettierrc.js file:

import config from '@ferfalk/prettier-config';

export default {
  ...config,
  singleQuote: false,
};

License

MIT