npm.io
2.1.0 • Published 1 year ago

@lightspeed/config-prettier

Licence
MIT
Version
2.1.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0

@lightspeed/config-prettier

Introduction

Prettier configuration in a convenient package.

Quick Start

  1. Install the dependency in your webapp.
yarn add -D prettier @lightspeed/config-prettier
  1. Consume the Prettier configuration.
// prettier.config.js
module.exports = require('@lightspeed/config-prettier');
  1. Optionally, extend the configuration as you see fit.
const baseConfig = require('@lightspeed/config-prettier');

module.exports = Object.assign(baseConfig, {
  printWidth: 120,
});