1.0.0 • Published 1 year ago

@gec.js/react-prettier-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@gec.js/react-prettier-config

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

Based on LBHackney-IT work, @hackney/prettier-config:1.0.1

Usage

Install package as a dev dependency:

npm install @gec.js/react-prettier-config -D
// or
yarn add @gec.js/react-prettier-config -D

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

const prettierConfig = require("@gec.js/react-prettier-config");

module.exports = prettierConfig;

To apply overrides of any of the options:

const prettierConfig = require("@gec.js/react-prettier-config");

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