From d74d3eb028d71e7b3eb807cf4abd0a352954461e Mon Sep 17 00:00:00 2001 From: Alexander Szmidt Date: Fri, 7 Dec 2018 13:39:05 +0100 Subject: [PATCH] Run eslint autofix, tidy up spacing and adjust eslint rules --- .eslintrc.js | 6 +- src/PLSmartPivot.js | 4361 +++++++++++++++++++++---------------------- 2 files changed, 2157 insertions(+), 2210 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 8ffb3ec..73028cb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -41,7 +41,7 @@ module.exports = { "no-cond-assign": ["warn"], "no-fallthrough": ["warn"], "no-undef": ["error"], - "no-unused-vars": ["error"], + "no-unused-vars": ["warn"], "no-use-before-define": ["warn", { "functions": false, "classes": false, "variables": false }], "no-useless-escape": ["warn"], "no-useless-return": ["warn"], @@ -53,9 +53,11 @@ module.exports = { "padded-blocks": ["warn", { "blocks": "never", "switches": "never", "classes": "never" }], "semi": ["error", "always"], "valid-typeof": ["warn"], - "no-eval": ["error"], + "no-eval": ["warn"], "no-implied-eval": ["error"], "no-debugger": ["warn"], + "no-unreachable": ["warn"], + "quotes": ["warn", "single", { "avoidEscape": true }] }, extends: [ "eslint:recommended" diff --git a/src/PLSmartPivot.js b/src/PLSmartPivot.js index bf4e39d..d292099 100644 --- a/src/PLSmartPivot.js +++ b/src/PLSmartPivot.js @@ -1,2221 +1,2166 @@ -define(["jquery","text!./PLSmartPivot.css"], function(e,t) {'use strict'; - return e("