Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-96376

Update to liferay-npm-scripts v2.x (Prettier)

    Details

      Description

      Major update because this switches to Prettier (https://prettier.io/) for JS source formatting.

      While Prettier doesn't exactly match our previous style (and furthermore is quite opinionated and with limited configurability), it will produce very consistent results with a low error rate. This is due to two factors: one is its pervasive use within the JS community means that most bugs have already been flushed out; the other is because it is really just an AST printer, which means that it isn't prone to the bugs we've seen in our own regex-based source formatter.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              greg.hurrell Greg Hurrell
              Recent user:
              Jason Pince
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.0.X
                  7.1.X
                  7.2.X
                  Master