cyclejs-community / cyclic-router

Router Driver built for Cycle.js
MIT License
109 stars 25 forks source link

Add prettier to repo #202

Closed jvanbruegge closed 6 years ago

jvanbruegge commented 6 years ago

Makes formatting easier, as everyone uses a different style. Simply run npm run format and the code is formatted correctly

I can set that up if I know what your preferences are

jvanbruegge commented 6 years ago

E.g. I use

ntilwalli commented 6 years ago

Does it enforce rules like linting? (I've never used prettier)

jvanbruegge commented 6 years ago

No, it's just formatting, but automatic without you having to fix linting rules, so it's best to have both (linter for stuff like unused-vars and prettier for formatting)

ntilwalli commented 6 years ago

sounds good, your prefs are fine

jvanbruegge commented 6 years ago

which style? I can open a PR then

ntilwalli commented 6 years ago

I amended my comment above, your prefs are fine

jvanbruegge commented 6 years ago

I didn't see that one yet :)