eslint - allow console logging


You can globally allow console logging when using eslint, and/or disable it on a line by line basis:

To disable eslint showing errors for a single line use // eslint-disable-next-line on the line above.

Or, to globally disable the eslint error for console logging, add the following to the package.json file and stop those warning: Unexpected console statement (no-console) errors.

package.json

{
...
"eslintConfig": {
    "rules": {
      "no-console": "off"
    }
  }
}
Tags: vuejs  eslint 

See also