From 6826b27637b8fa61d7e8b8ebfe3655e810011513 Mon Sep 17 00:00:00 2001 From: Alex Leith Date: Tue, 5 Dec 2017 02:12:25 +1100 Subject: [PATCH] Remove console log and add eslint rule to prevent repeat (#716) * add lint rule around console logging * remove console.log --- .eslintrc | 3 ++- test/store.test.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index cdf06d32f..b50ba1a3e 100644 --- a/.eslintrc +++ b/.eslintrc @@ -26,7 +26,8 @@ "quotes": "off", "space-before-function-paren": "off", "template-curly-spacing": "error", - "camelcase": 0 + "camelcase": 0, + "no-console": ["error", { "allow": ["warn", "error"] }] }, "env": { "es6": true, diff --git a/test/store.test.js b/test/store.test.js index 01fb47a1c..57cc3891a 100644 --- a/test/store.test.js +++ b/test/store.test.js @@ -268,7 +268,6 @@ test('Store#storeAndRestoreMapConfig', t => { const store = new Store(ctx); store.storeMapConfig(); // Check we can get the initial state of it - console.log(store); t.equal(store.getInitialConfigValue('doubleClickZoom'), false, 'Retrieves the initial value for the doubleClickZoom'); // Enable it again, byt then use restore to reset the initial state map.doubleClickZoom.enable();