@twgdev/prettier-config

1.0.3 • Public • Published

Prettier config

npm version NPM downloads Code Style Prettier MIT License Twitter Follow

These are settings for Prettier.

What it does

A shared Prettier config

Installation

To install this package run the following command in the terminal in the root directory of your application.

npm install --save-dev @twgdev/prettier-config

OR

yarn add --dev @twgdev/prettier-config

Usage

Add a key in your package.json file.

"prettier": "@twgdev/prettier-config"

OR

Create a .prettierrc , .prettierrc.yaml , .prettierrc.yml or .prettierrc.json file and export a string.

"@twgdev/prettier-config"

OR

Create a prettier.config.js or .prettierrc.js file and export an object.

module.exports = {
  ...require("@twgdev/prettier-config"),
  // endOfLine: 'lf', // to overwrite the property
};

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @twgdev/prettier-config

      Weekly Downloads

      14

      Version

      1.0.3

      License

      MIT

      Unpacked Size

      4.37 kB

      Total Files

      8

      Last publish

      Collaborators

      • twgdev