Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117849

qmlformat: support formatting of plain JS files

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • 6.7
    • None
    • QML: Tooling
    • None
    • 4c1b7104a (dev), a8aad1afd (dev), d932c2574 (dev), a0f946d41 (dev), acb7f79f5 (dev), f8f3a9277 (dev), 6e0180073 (dev), a0904516e (dev), 0a475fd97 (dev), 6df9065fd (dev), d7d656c19 (dev), 1c434e777 (dev), ad83c1b0d (dev), 8b7551264 (dev), 4eba50d8a (dev)

    Description

      qmlformat currently doesn't support formatting of .js files. This is one of the missing feature to replace QtCreator's code model.

      We should first add support in qmldom to open .js files and should be able to get AST for that file. Formatting then can rely on how qmlformat currently formats ScriptExpression elements.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-117849
          # Subject Branch Project Status CR V

          Activity

            People

              dima.a Dmitrii Akshintsev
              semih.yavuz Semih Yavuz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes