From 2630b6197d022ad154796ab4167628bc714b426f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Fri, 17 Mar 2017 03:19:03 +0100 Subject: [PATCH] fix linting --- lib/map.js | 2 +- tasks/linting.js | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/map.js b/lib/map.js index c54cf55..890492b 100644 --- a/lib/map.js +++ b/lib/map.js @@ -311,7 +311,7 @@ define(["map/clientlayer", "map/labelslayer", localStorage.setItem("map/customLayers", JSON.stringify(Object.keys(customLayers))); } } catch (e) { - + console.error(e); } } diff --git a/tasks/linting.js b/tasks/linting.js index 71311dc..de1b8d5 100644 --- a/tasks/linting.js +++ b/tasks/linting.js @@ -13,15 +13,12 @@ module.exports = function (grunt) { }, eslint: { options: { + extends: [ + "defaults/configurations/eslint" + ], rules: { - "semi": [2, "never"], - "curly": [2, "multi"], - "strict": [2, "never"], - "no-multi-spaces": 0, - "no-new": 0, - "no-shadow": 0, - "no-use-before-define": [1, "nofunc"], - "no-underscore-dangle": 0 + "semi": [2, "always"], + "no-undef": 0 } }, sources: {