Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: true doesn't fix and swallows errors #88

Open
fedegl opened this issue Aug 16, 2017 · 3 comments
Open

fix: true doesn't fix and swallows errors #88

fedegl opened this issue Aug 16, 2017 · 3 comments

Comments

@fedegl
Copy link

fedegl commented Aug 16, 2017

I am using a very standard configuration for the loader but when I activate the fix: true option webpack doesn't display any errors but it also doesn't fix them.

When fix: false webpack does display the errors.

  {
    // set up standard-loader as a preloader
    enforce: 'pre',
    test: /\.jsx?$/,
    loader: 'standard-loader',
    exclude: /(node_modules|blockly|modules(\/|\\)segmentio(\/|\\)sdk(\.min)?\.js)/,
    options: {
      // Emit errors instead of warnings (default = false)
      error: false,
      // enable snazzy output (default = true)
      snazzy: true,
      fix: true
    }
  },

I am on node v8.1.2 and webpack 3.1.0

@RyanWarner
Copy link

Does standard-loader even support the fix option? I don't see it in any examples nor in the source. For me, nothing happens when I add it to my options.

@fedegl
Copy link
Author

fedegl commented Aug 17, 2017

@RyanWarner standard-loader uses standard.lintText which does support { fix: true/false } option

@mezerotm
Copy link

mezerotm commented Jul 6, 2018

Still having trouble figuring out how to get it to automatically fix code.
edit: I got it to work, but with eslint-loader + standard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants