@gec.js/react-prettier-config
v1.0.0
Published
Prettier config library for React or Typescript applications
Downloads
3
Maintainers
Readme
@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,
};