@os-team/prettier-config

1.1.11 • Public • Published

@os-team/prettier-config NPM version

Prettier config. Contains properties for using single quotes instead of double quotes.

Installation

Prerequisites

Install the exact version (-E) of prettier in devDependencies (-D) using the following command:

yarn add -DE prettier

Step 1. Install the package

Install the exact version (-E) of the package in devDependencies (-D) using the following command:

yarn add -DE @os-team/prettier-config

Step 2. Add the config

The way you add the prettier config to your project depends on whether you want to override some properties or not.

Option 1. Using the default config

Create the .prettierrc file with the following content

"@os-team/prettier-config"

Option 2. Overriding some properties

Create the .prettierrc.js file with the following content

module.exports = {
  ...require('@os-team/prettier-config'),
  semi: false,
};

In this example, you are overriding the semi property.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.11
    13
    • latest

Version History

Package Sidebar

Install

npm i @os-team/prettier-config

Weekly Downloads

58

Version

1.1.11

License

MIT

Unpacked Size

2.7 kB

Total Files

4

Last publish

Collaborators

  • oxilor