Skip to content

Workspace schematic should include code formatting #13

@vsavkin

Description

@vsavkin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions