It is very annoying to deal with formatting code (especially via tslint). Instead we should use tools like clang-format or prettier to do that.
We should change the workspace (and covert-to-workspace) schematic in the following way:
- add the scripts dir
- put a file called format.sh in the scripts dir. The script should format all tsfiles in libs and apps. See the nx repo on how to do it.
- update package.json to include format command (it will run the script)
- update tslint.json to remove all checks related to formatting code
Finally, we should update the schematics to generate code that is formatted properly. So running yarn format will produce 0 changes. The last part might be tricky in some situations, but things like quotes, spaces, etc can be handled in the same PR.
It is very annoying to deal with formatting code (especially via tslint). Instead we should use tools like clang-format or prettier to do that.
We should change the workspace (and covert-to-workspace) schematic in the following way:
Finally, we should update the schematics to generate code that is formatted properly. So running
yarn formatwill produce 0 changes. The last part might be tricky in some situations, but things like quotes, spaces, etc can be handled in the same PR.