[Koha-bugs] [Bug 33625] New: Enforce formatting on vue js files

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 27 11:11:54 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33625

            Bug ID: 33625
           Summary: Enforce formatting on vue js files
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: ERM
          Assignee: jonathan.druart+koha at gmail.com
          Reporter: jonathan.druart+koha at gmail.com
                CC: jonathan.druart+koha at gmail.com,
                    jonathan.field at ptfs-europe.com,
                    martin.renvoize at ptfs-europe.com,
                    matt.blenkinsop at ptfs-europe.com,
                    pedro.amorim at ptfs-europe.com

We have a pre-commit git hook, a QA test and an unit test (in xt/vue_tidy.t) to
make sure .vue files will always be correctly formatted, but we don't have
anything for the .js  and .ts files that were pretty at the beginning but are
no longer.

It should be:
t/cypress/**/*.ts
koha-tmpl/intranet-tmpl/prog/js/vue/*.js
koha-tmpl/intranet-tmpl/prog/js/vue/**/*.js (maybe exclude dist?)

With the following command:
yarn run prettier --trailing-comma es5 --arrow-parens avoid --write FILES

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list