How to auto fix errors with grunt eslint?

In your gruntfile, you’ll have to add { fix: true }

eslint: { 
    options: { 
        fix: true 
    } 
}


You may also like...