No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    VS Code Config Problem In Boot File

    Help
    4
    10
    364
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jeevanjotsingh last edited by

      Hello Quasar
      After following this with prettier https://quasar.dev/start/vs-code-configuration

      My Quasar boot file adds semicolon at the end of the function after each saves. Thank you.
      cc1c708b-1290-4b5c-9fd4-ed08bc094b0f-image.png

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        I think that is simply a setting in VSCode you need to turn off.

        Scott

        1 Reply Last reply Reply Quote 0
        • Hawkeye64
          Hawkeye64 last edited by

          @jeevanjotsingh This may help: https://quasar.dev/start/vs-code-configuration#Prettier-ES-Lint-rules

          1 Reply Last reply Reply Quote 0
          • J
            jeevanjotsingh last edited by jeevanjotsingh

            @Hawkeye64 yes I tried it and Editor autoFixOnSave is now deprecated and not working after installing all extensions there and putting all into settings JSON
            @s-molinari I think you are pointing to auto format on save but when I turn it off for Editor it started following other save and format rules.

            1 Reply Last reply Reply Quote 0
            • metalsadman
              metalsadman last edited by

              @jeevanjotsingh you’re just better off choosing one settings there, and imo eslint standard works well than prettier for me in vscode.

              J 1 Reply Last reply Reply Quote 1
              • J
                jeevanjotsingh @metalsadman last edited by

                @metalsadman pretty much I tried with both separately, I think the problem might occur with you as well, Just try to go to boot file and hit save, It might add a comma at last but such thing don’t work with other normal functions, But I will try to uninstall prettier and use the eslint simple.

                1 Reply Last reply Reply Quote 0
                • J
                  jeevanjotsingh last edited by

                  @metalsadman @Hawkeye64 @s-molinari I opened the pull request for the New Settings that worked for me, AutoFixOnSave should be replaced with this…

                  1 Reply Last reply Reply Quote 0
                  • J
                    jeevanjotsingh last edited by

                    I haven’t checked this with prettier, Uninstalled it first so I can use old settings and it worked but should remove autoFixOnSave first and use codeActionsOnSave.

                    metalsadman 1 Reply Last reply Reply Quote 0
                    • metalsadman
                      metalsadman @jeevanjotsingh last edited by

                      @jeevanjotsingh nope, it doesn’t occur to me, and hasn’t since i switch to standard. before when i was using prettier, it works flawlessly then it messes up few days or weeks etc… just clean your settings, linting is not perfect tbh, and there are bunch of settings which is messy.

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        jeevanjotsingh @metalsadman last edited by

                        @metalsadman yea can be a possibility but afaik new lint doesn’t support autoFixOnSave maybe happen to you when you install all the extensions listed in quasar vscode page. then you can always try the above solution, it should work.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post