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

    Code formatting ?

    Help
    2
    4
    822
    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.
    • I
      Incremental last edited by Incremental

      Hello,
      I’m still starting on quasar and vue, and I face new problem as I don’t have a lot of time…
      It’s about code formatting !
      Everything was fine for me since a long time and after a VSC update, all my code formatting is modified.
      As I want more to focus on dev as tool configurations, do you have a good tuto to configure VSC + Eslint + Vetur + Prettier

      I followed https://quasar.dev/start/vs-code-configuration
      but I don’t find answers for my problems.
      in my .vue files (not .js) :

      console.log( "onPwdChange/refreshToken - error.config", error.config );
      

      after save appears as :

      console.log(
      	"onPwdChange/refreshToken - error.config",
      	error.config
      );
      

      and this.$q.notify() appears on many lines…
      Do you have some clues to solve this ?
      I’m wondering if all modules are necesserally : Eslint + Vetur + Prettier ?
      Thanks

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @Incremental last edited by dobbel

        @incremental

        You could disable code formatting entirely as a beginner. It can be quite a mess to setup exactly what you want. Can’t help you with VSC because I am using Intellij.

        Btw this is not a bad code format style. Very common to stack params horizontally like this.

        console.log(
        	"onPwdChange/refreshToken - error.config",
        	error.config
        );
        
        1 Reply Last reply Reply Quote 0
        • I
          Incremental last edited by Incremental

          If this can help :

          • VSC parameters could be overiden by project config files,
            48b09b9a-1e0f-4c42-819a-17d38fc97d10-image.png
          • I just changed : “prettier.printWidth”: 250,
          1 Reply Last reply Reply Quote 0
          • I
            Incremental last edited by Incremental

            But don’t work on

            setTimeout(() => {
            	this.anim_update_pwd = false;
            }, 3000);
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post