@nake/prettier-config

1.0.1 • Public • Published

@nake/prettier-config Prettier

Shareable prettier configuration used by nake applications

Installation

Use npx to install peerdeps automatically or install peerDependencies with npm/yarn manually.

# Install with npx
$ npx install-peerdeps --dev @nake/prettier-config

# Install with yarn
$ yarn add --dev prettier @nake/prettier-config

Usage

Reference it in your package.json:

{
  "name": "nake-project",
  "version": "1.0.0",
  "prettier": "@nake/prettier-config"
}

You can override configs aflter require module in prettier.config.js.

const prettierConfig = require('@nake/prettier-config');

module.exports = {
  ...prettierConfig,
  // Override with your configs here, e.g. printWidth: 80
};

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @nake/prettier-config

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.96 kB

Total Files

5

Last publish

Collaborators

  • laozhu