Glavin001 / atom-beautify

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
http://unibeautify.com/
MIT License
1.5k stars 453 forks source link

Options.json file not up to date with js-beautify new features #2417

Open anavarr opened 4 years ago

anavarr commented 4 years ago

Description

Updates in js-beautify adding preserve and preserve-aligned options for wrapping attributes have not been added in the src/options.json file. (I was only interested in the Vue Beautifier so I only modified the corresponding fields but it is the case for any JS-beautified related ##language)

see PR #1571 on the beautify-web/js-beautify repo

src/options.json file as is

"wrap_attributes": {
        "type": "string",
        "default": "auto",
        "enum": [
          "auto",
          "aligned-multiple",
          "force",
          "force-aligned",
          "force-expand-multiline"
        ],
        "description": "Wrap attributes to new lines [auto|aligned-multiple|force|force-aligned|force-expand-multiline] (Supported by JS Beautify)",

Expected file

The file should look like this:

"wrap_attributes": {
        "type": "string",
        "default": "auto",
        "enum": [
          "auto",
          "aligned-multiple",
          "force",
          "force-aligned",
          "force-expand-multiline",
          "preserve",
          "preserve-aligned",
        ],
        "description": "Wrap attributes to new lines [auto|aligned-multiple|force|force-aligned|force-expand-multiline|preserve|preserve-align] (Supported by JS Beautify)",
anavarr commented 4 years ago

It should be a quick-todo I guess, since it only requires adding a few lines to the src/options.json file.

Dracotz commented 4 years ago

Wow, was looking everywhere for a solution like that ! Thank you Tas-Hur, t'assures !

anavarr commented 4 years ago

Glad it could help someone