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

    import statements are removed on save

    Help
    2
    3
    14
    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.
    • R
      rowild last edited by

      When preparing adding import statements (like firebase), they are removed on save. I assume this happens because the imported code is not yet used anywhere. However, I would like to keep all imports for now and remove them later.

      Is there a way to toggle that feature on/off?
      Or do I have to do something else to keep the imports even when they are not used yet?
      Thank you!

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

        @rowild

        I don’t think Quasar does this (directly). Probably your IDE ( or a plugin). Could be eslint if you enabled --fix . Or Prettier…( but I doubt it’s either eslint or prettier removing imports)

        1 Reply Last reply Reply Quote 0
        • R
          rowild last edited by

          Here is what I observed further:

          • it only happens, when a npm script (like “npm run dev”) is running
          • it is not a Vetur setting ( “vetur.completion.autoImport”: false )
          • rules like /* eslint-disable / import … / eslint-enable */ do not work
          • no changes, when parserOptions: { allowImportExportEverywhere: true } is set

          I do not use Prettier…

          This is incredibly annoying… 😞

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