Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 733 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 733 Bytes

@la-ots/prettier-config

Standard configuration for Prettier.

Installation

npm install --save-dev @la-ots/prettier-config

Configure settings

Create .prettierrc.js file with the following content:

module.exports = {
  ...require("@la-ots/prettier-config"),
};

IDE Integration

Follow instructions provided by Prettier for integration setup.

Running linters

Add the following scripts to your package.json:

{
  "scripts": {
    "format:check": "prettier --check .",
    "format": "prettier --write --ignore-unknown ."
  }
}

Execute scripts:

npm run format:check
npm run format