@hackney/prettier-config

Prettier config for LBH Modern Tools for Housing

Usage no npm install needed!

<script type="module">
  import hackneyPrettierConfig from 'https://cdn.skypack.dev/@hackney/prettier-config';
</script>

README

@hackney/prettier-config

A configuration for prettier, to create consistancy across Hackney projects.

Usage

Install package as a dev dependency:

npm install --save-dev @hackney/prettier-config
// or
yarn add -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,
};