json0-ot-diff icon indicating copy to clipboard operation
json0-ot-diff copied to clipboard

Prettier

Open curran opened this issue 3 years ago • 1 comments

When working with this codebase, there are different formatting conventions in different files (e.g. tabs in tests.js and spaces in index.test.js. Having worked with Prettier in most of my projects, I can advocate for its use as a time saving tool. It formats the code automatically so that we as authors never need to think about formatting. I would suggest that we adopt Prettier in this codebase, as it will make work going forward easier.

curran avatar Nov 29 '21 15:11 curran

I'll admit I prefer the feature set of ESLint over Prettier, but either one would be an improvement, so I'll leave the decision up to the implementer. I'd also prefer an implementation that has the least impact on functional code (i.e. index.js). ESLint allows you to tailor the ruleset more than Prettier to my knowledge, but I'll be happy with either solution.

kbadk avatar Nov 29 '21 15:11 kbadk