Disable ESLint no-console In Development

October 9, 2017

Edit .eslintrc.js in your project directory.

module.exports = {
  ...
  // add your custom rules here
  'rules': {
    'no-console': process.env.NODE_ENV === 'production' ? 2 : 0
  }
}

Note: process.env.NODE_ENV is defined in Vue.js Webpack Template.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.