ceph / ceph.io

This repo contains static site content for www.ceph.io
16 stars 86 forks source link

Code formatting and automation #137

Closed Pete-Robelou closed 3 years ago

Pete-Robelou commented 3 years ago

Some references:

adamduncan commented 3 years ago

@Pete-Robelou On second thoughts here, perhaps we forgo running a sitewideformat across the codebase. Content contributions are starting to come in, so wouldn't want to create unnecessary conflicts.

Would still suggest we update Prettier and set up husky / lint-staged, that way files will progressively fall into the pit of formatting success as they're subsequently re-commited over time.

Would be good to run Prettier locally all the same, to gauage how many files would be affected by a blanket reformat.

Pete-Robelou commented 3 years ago

Installed latest versions of husky and lint-staged and also updated prettier to the latest.

Configured lint-staged and prettier to look at the same files js|json|css|md|html.