Skip to content

Commit

Permalink
Remove console log and add eslint rule to prevent repeat (#716)
Browse files Browse the repository at this point in the history
* add lint rule around console logging

* remove console.log
  • Loading branch information
Alex Leith authored and mcwhittemore committed Dec 4, 2017
1 parent 2ca7a05 commit 6826b27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion test/store.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6826b27

Please sign in to comment.