Adds prettier for formatting the frontend code and a few other files like JSON and Markdown. prettier is using default options apart from these two which I set to fit the current code style: 1. No semicolons at the end of statements, 2. Use single quotes for strings.
Formats the repo with prettier.
Adds a prettier formatting check to the CI script.
Adds a pre-commit hook that formats the code automatically when you commit.
Adds a lint:fix script that fixes those lints which can be automatically fixed.
The diff is large, so I suggest having a look at the individual commits.
This PR:
prettier
for formatting the frontend code and a few other files like JSON and Markdown.prettier
is using default options apart from these two which I set to fit the current code style: 1. No semicolons at the end of statements, 2. Use single quotes for strings.prettier
.prettier
formatting check to the CI script.lint:fix
script that fixes those lints which can be automatically fixed.The diff is large, so I suggest having a look at the individual commits.