codeforgermany / click_that_hood

A game where users must identify a city's neighborhoods as fast as possible
http://click-that-hood.com
MIT License
446 stars 638 forks source link

Switch to an excellent code formatting and linting tool #347

Open specious opened 1 year ago

specious commented 1 year ago

Currently, prettier is being used to validate and normalize the formatting of both code and data.

It's got several issues:

You can see how slow the validation is by looking at a github workflow run or by running npm run check-data.

When a file has any issues that cause it not to pass validation, it simply prints:

[warn] Code style issues found in the above file. Forgot to run Prettier?

An efficient formatting tool that doesn't do any deep analysis of the content should be able to check or streamline a file of any length in a single pass with minimal memory overhead.

It makes sense to look at the available options and to evaluate them.

specious commented 1 year ago

Perhaps #65 and #66 are related issues.