Skip to content

softwareventures/prettier-config

Repository files navigation

prettier-config

Standard Prettier configuration for Software Ventures Limited.

Install

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

or for yarn users:

yarn add --dev @softwareventures/prettier-config

Usage

Add to package.json:

{
    "prettier": "@softwareventures/prettier-config"
}

pre-commit hook

Recommended: Configure husky and precise-commits to automatically reformat changes before they are committed.

npm install --save-dev husky precise-commits

or

yarn add --dev husky precise-commits

Then add to package.json:

{
    "husky": {
        "hooks": {
            "pre-commit": "precise-commits"
        }
    }
}