diff --git a/zeppelin-web/.eslintrc b/zeppelin-web/.eslintrc index 7be10a58f0..803b1b5674 100644 --- a/zeppelin-web/.eslintrc +++ b/zeppelin-web/.eslintrc @@ -38,7 +38,6 @@ "operator-linebreak": 0, "prefer-spread": 0, "space-before-blocks": 0, - "keyword-spacing": 0, "no-redeclare": 0, "standard/object-curly-even-spacing": 0, "comma-spacing": 0, diff --git a/zeppelin-web/src/app/helium/helium.config.js b/zeppelin-web/src/app/helium/helium.config.js index 1dafa6d44d..7e66eee609 100644 --- a/zeppelin-web/src/app/helium/helium.config.js +++ b/zeppelin-web/src/app/helium/helium.config.js @@ -25,7 +25,7 @@ export const HeliumConfFieldType = { export function mergePersistedConfWithSpec(persisted, spec) { const confs = []; - for(let name in spec) { + for (let name in spec) { const specField = spec[name]; const persistedValue = persisted[name]; @@ -77,7 +77,7 @@ export function parseConfigValue(type, stringified) { } else if (HeliumConfFieldType.JSON === type) { value = JSON.parse(stringified); } - } catch(error) { + } catch (error) { // return just the stringified one console.error(`Failed to parse conf type ${type}, value ${value}`); } diff --git a/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js b/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js index 2db5515240..38e88fbd3a 100644 --- a/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js +++ b/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js @@ -332,7 +332,7 @@ function ResultCtrl($scope, $rootScope, $route, $window, $routeParams, $location const afterLoaded = () => { const containerDOM = angular.element(`#${containerDOMId}`); // Spell.interpret() can create multiple outputs - for(let i = 0; i < dataWithTypes.length; i++) { + for (let i = 0; i < dataWithTypes.length; i++) { const dt = dataWithTypes[i]; const data = dt.data; const type = dt.type; diff --git a/zeppelin-web/src/app/spell/spell-result.js b/zeppelin-web/src/app/spell/spell-result.js index d62e97a873..b5b5e7e847 100644 --- a/zeppelin-web/src/app/spell/spell-result.js +++ b/zeppelin-web/src/app/spell/spell-result.js @@ -87,7 +87,7 @@ export class DataWithType { let previousMagic = DefaultDisplayType.TEXT; // create `DataWithType` whenever see available display type. - for(let i = 0; i < splited.length; i++) { + for (let i = 0; i < splited.length; i++) { const g = splited[i]; const magic = SpellResult.extractMagic(g); diff --git a/zeppelin-web/src/app/visualization/builtins/visualization-scatterchart.js b/zeppelin-web/src/app/visualization/builtins/visualization-scatterchart.js index c32495e3c0..0ccc3f6f9f 100644 --- a/zeppelin-web/src/app/visualization/builtins/visualization-scatterchart.js +++ b/zeppelin-web/src/app/visualization/builtins/visualization-scatterchart.js @@ -233,7 +233,7 @@ export default class ScatterchartVisualization extends Nvd3ChartVisualization { if ((Math.abs(d3gvalues[i]['x'] - d3gvalues[i+1]['x']) < epsilon) && (Math.abs(d3gvalues[i]['y'] - d3gvalues[i+1]['y']) < epsilon)){ d3gvalues.splice(i+1,1); - } else{ + } else { i++; } } diff --git a/zeppelin-web/src/components/helium/helium-conf.js b/zeppelin-web/src/components/helium/helium-conf.js index b5fb7508ae..70ec2149f4 100644 --- a/zeppelin-web/src/components/helium/helium-conf.js +++ b/zeppelin-web/src/components/helium/helium-conf.js @@ -25,7 +25,7 @@ export const HeliumConfFieldType = { export function mergePersistedConfWithSpec(persisted, spec) { const confs = []; - for(let name in spec) { + for (let name in spec) { const specField = spec[name]; const persistedValue = persisted[name]; @@ -77,7 +77,7 @@ export function parseConfigValue(type, stringified) { } else if (HeliumConfFieldType.JSON === type) { value = JSON.parse(stringified); } - } catch(error) { + } catch (error) { // return just the stringified one console.error(`Failed to parse conf type ${type}, value ${value}`); }