@igne-agency/prettier

1.4.1 • Public • Published

Prettier config for Igne agency

Shared config for prettier, so all our projects look nice and recognizable.

Setting up

Once for a project.

npm i -D @igne-agency/prettier prettier

Add prettier to package.json:

"prettier": "@igne-agency/prettier",

Add a script to run prettier in :

"scripts": {
  "format": "prettier . --check"
}

Make sure to add a step to the pipeline of your project that runs this script.

Editor integration

For every developer.

VSCode

  • Install the prettier extension: esbenp.prettier-vscode
  • Open VSCode's settings.json and add:
    "editor.defaultFormatter": "esbenp.prettier-vscode",
  • Related settings you may want to add are:
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    

Readme

Keywords

none

Package Sidebar

Install

npm i @igne-agency/prettier

Weekly Downloads

7

Version

1.4.1

License

See licence file at: https://github.com/IGNE-Agency/code-consistency

Unpacked Size

2.94 kB

Total Files

4

Last publish

Collaborators

  • devjorn
  • arash817