-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
This story requires the new monorepo to be created first, see #1725.
Configure automatic formatting of source code using Prettier. The solution should pretty much copy what we have in loopback-next.
Acceptance criteria
The changes should be split to (at least) the following two commits:
Setup Prettier infrastructure
- Add
.prettierrcfrom loopback-next - Add a new script
npm run lintto check whether all source code is formatted according to Prettier rules. This script should be run fromposttestscript too. - Add a new script
npm run lint:fixto automatically fix linting errors. - Add a CI step to run
npm lint, see how loopback-next does it.
Reformat the code
- Execute
npm run lint:fixto reformat the code.