1.0.1 • Published 2 months ago

@gotrip/prettier-config v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

Recommended Prettier configuration to create formatted code with best practices.

Installation

Install the package as development dependency, alongside prettier package

npm i @gotrip/prettier-config prettier -D

or yarn

yarn add @gotrip/prettier-config prettier -D

Usage

In your package.json, add the following:

{
    ...
    "prettier": "@gotrip/prettier-config",
    "hysky": {
        "hooks": {
            "pre-commit": "npx lint-staged"
        }
    }
    ...
}

If you need to change or add any other config to the prettier, you must remove the prettier option on package.json and create a .prettierrc.js file with the following content:

module.exports = {
    ...require('@gotrip/prettier-config')
    // some overrides if needed
}
1.0.1

2 months ago

1.0.0

7 months ago