Disable no-console problem with inline comment

This commit is contained in:
Anton Gunov
2018-03-15 22:34:00 +03:00
parent f7eb097ad7
commit 7b1d00fe3f
2 changed files with 6 additions and 0 deletions

View File

@@ -28,7 +28,9 @@ module.exports = (Controller) => {
request(`/api/grab/${domain}`, (err, status, res) => {
if (err) {
/* eslint-disable no-console */
console.error(err);
/* eslint-enable no-console */
ctrl.$emit('error', 'General UI error.');
return false;
}
@@ -43,7 +45,9 @@ module.exports = (Controller) => {
ctrl.$emit('error', res.error);
break;
default:
/* eslint-disable no-console */
console.error(`An unrecognized HTTP status ${status} was received.`);
/* eslint-enable no-console */
ctrl.$emit('error', 'General UI error.');
}
});

View File

@@ -5,7 +5,9 @@ module.exports = (Controller) => {
ctrl.$load(({ live }) => {
if (!live && !window.ga) {
/* eslint-disable no-console */
console.warn('Google Analytics module not found.');
/* eslint-enable no-console */
return;
}