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

Jonathan Druart <jonathan.dru...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #163799|0                           |1
        is obsolete|                            |
 Attachment #163825|0                           |1
        is obsolete|                            |

--- Comment #13 from Jonathan Druart <jonathan.dru...@gmail.com> ---
Created attachment 164248
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164248&action=edit
Bug 36400: Centralize {js,ts,vue} formatting config in .prettierrc.js

Let's centralize all formatting for js, ts and vue files in a .prettierrc.js.
    The goal here is to preserve eslint's linting but ignore all of its
formatting options.

    Seems to work for vue files in vscode, vscodium and neovim w/
vscode-eslint-language-server.

    To test:
    1) Pick any vue file for example.
    2) Run format via your editor and either npx prettier -c .prettierrc.js
<PATH_TO_VUE_FILE> [you can also use the -w flag to directly write].
    3) Look for unexpected changes: vue files should be already formatted w/
these inline flags (see:
https://wiki.koha-community.org/wiki/Coding_Guidelines#JS14:_Prettier_JavaScript):
[--trailing-comma es5, --arrow-parens avoid].
    4) Sign off if you're happy and comment or show what went wrong in a
comment.

Signed-off-by: Brendan Lawlor <blaw...@clamsnet.org>

Signed-off-by: Jonathan Druart <jonathan.dru...@bugs.koha-community.org>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to