@gotrip/prettier-config

1.0.1 • Public • Published

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
}

Package Sidebar

Install

npm i @gotrip/prettier-config

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.64 kB

Total Files

5

Last publish

Collaborators

  • geronimo