1.0.1 • Published 3 months ago

@ontario-digital-service/prettier-config-ontario v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

prettier-config-ontario

A Prettier configuration based on the Ontario Frontend JavaScript style guide that will be released in the future. This README is repurposed from prettier-config-airbnb.

Installation

npm install prettier-config-ontario --save-dev

or

yarn add prettier-config-ontario --dev

Usage

Create a .prettierrc.json file in your project root directory with a value:

"prettier-config-ontario"

If you need to overwrite some properties, create a .prettierrc.js file in your project root directory, import the configuration and export the modifications:

module.exports = {
  ...require('prettier-config-ontario'),
  printWidth: 120,
};
1.0.1

3 months ago

1.0.0

3 months ago