npm.io
1.1.1 • Published 2 months ago

@hackney/prettier-config

Licence
MIT
Version
1.1.1
Deps
0
Size
2 kB
Vulns
0
Weekly
0
Stars
1

@hackney/prettier-config

Shared Prettier configuration for Hackney front-end projects.

Usage

Install the package as a dev dependency:

npm install -D @hackney/prettier-config

Create a .prettierrc.js file in the root of your project:

const prettierConfig = require("@hackney/prettier-config");

module.exports = prettierConfig;

To apply overrides of any of the options:

const prettierConfig = require("@hackney/prettier-config");

module.exports = {
  ...prettierConfig,
  semi: false,
};