0.0.5 • Published 4 years ago

@ddmxh/prettier-config v0.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

@ddmxh/prettier-config

Provide a common config for projects use

Installation

  npm i -D @ddmxh/prettier-config

Usage

Crate a file named .prettierrc.js

module.exports = require('@ddmxh/prettier-config')

Running

As this package only provides the Prettier configuration, it is assumed you already have prettier installed in your project.

  • It's recommended to install the relevant Editor Addons/Plugins and enable "Pretter on Save".

  • It's recommended to add a prettier script to package.json. An example one is:

    scripts: {
      "prettier": "prettier '**/*.{js,json,css,scss,md}' --write"
    }

    You can then run the following, to automatically format your project's code:

    npm run prettier

References