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

    Allow electron build despite of linting errors?

    Framework
    2
    3
    388
    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.
    • D
      devpix last edited by

      I am just toying with quasar electron. but i do not get it to build the app, because i allways get linting errors which stop the build.

      did just (latestest versions) without any changes to the default demo app that comes with quasar out of the box:

      quasar create test-app # (selected typescript support and standard linting)
      quasar mode add electron 
      quasar dev -m electron # linting errors but works 
      quasar build -m electron # liniting errors  stop build
      

      after first run i got 10 liniting errors. after i tried to fix or ignore them i got new errors, this seems not to end. and now i am at a point i don’t know how to fix or ignore current linting errors.

      Linting may be a fine thing, but can i allow electron app to be build despite of linting errors?

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

        @devpix

        https://stackoverflow.com/questions/48249564/ignore-or-prevent-eslint-errors-from-breaking-the-build-in-a-react-project-crea

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

          @dobbel

          thanks, but did not help:
          even commenting out complete block has no effect. What helped was to add /src to .eslintignore. Now all is ignored which is fine to get it run but not for real developing…

          extendWebpack (cfg) {
                  // linting is slow in TS projects, we execute it only for production builds
                  if (ctx.prod) {
                    cfg.module.rules.push({
                      enforce: 'pre',
                      test: /\.(js|vue)$/,
                      loader: 'eslint-loader',
                      exclude: /node_modules/,
                      options:{
                        emitWarning : true,
                        emitError : false
                      }
                    })
                  }
                }
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post