diff --git a/.eslintrc b/.eslintrc index 468af03..30f033b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -5,6 +5,7 @@ "prettier" ], "rules": { + "no-console": ["error", { "allow": ["warn", "error"] }], "flowtype/boolean-style": [ 2, "boolean" diff --git a/src/index.js b/src/index.js index 017528c..1ec3c4a 100644 --- a/src/index.js +++ b/src/index.js @@ -25,7 +25,9 @@ export type Options = { }; const html2canvas = (element: HTMLElement, conf: ?Options): Promise<*> => { + // eslint-disable-next-line no-console if (typeof console === 'object' && typeof console.log === 'function') { + // eslint-disable-next-line no-console console.log(`html2canvas ${__VERSION__}`); }