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

    How to run lint --fix command

    CLI
    2
    5
    5032
    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.
    • H
      hbothra15 last edited by

      I am trying to run “npm run lint --fix” command but it seems it just runs lint but doesn’t fix the issues. Can someone let me know if we have any other command or how to fix the same?

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

        depending on the issues you will usually need to open the file and fix it manually or if just indentation and such, depends on your text editor there are autofix function like in vscode once you save.

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

          Hi @metalsadman
          I understand about IDE, but I am more interested in “npm run lint --fix” command.

          Please find the attached screenshot for reference
          0_1547196823960_Capture.PNG

          As you can see I have added --fix flag in the command yet it ran as if I ran without --fix flag

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

            it’s a eslint issue, you can get more help about it in their site or repo imo.

            1 Reply Last reply Reply Quote 0
            • H
              hbothra15 last edited by

              Got it resolved by executing npm run lint – --fix

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