cdrani/chorus

[DOC]: Set up prettier and pre-commit hook to prettify codebase

Closed this issue · 3 comments

Implementation:

  1. Setup husky: https://typicode.github.io/husky/get-started.html
  2. Install prettier as dev dependency
  3. Add .prettierrc file with the below configurations.
    {
    	"semi": false,
    	"tabWidth": 4,
        "printWidth": 100,
        "singleQuote": true,
        "trailingComma": "none",
        "bracketSameLine": false,
    }
  4. Add dist and node_modules to .prettierignore file
  5. Run prettier on all files.

@sstephanyy: This might be an even better first issue. Let me know if you want to claim this one instead. I have also updated the contributing file with steps for local development.

@cdrani thanks for the contribution guide, will be very helpful. Yes, I wanna claim this one :)

Solved in #212.