Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
parser: babel-eslint

env:
es6: true
amd: true
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
},
"devDependencies": {
"auto-release-sinon": "^1.0.3",
"babel-eslint": "^4.0.5",
"eslint": "^1.0.0",
"expect.js": "^0.3.1",
"faker": "^1.1.0",
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/kibana/public/visualize/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ define(function (require) {
$scope.responseValueAggs = editableVis.aggs.getResponseAggs().filter(function (agg) {
return _.get(agg, 'schema.group') === 'metrics';
});
} catch (e) {
// this can fail when the agg.type is changed but the
// params have not been set yet. watcher will trigger again
// when the params update
}
// this can fail when the agg.type is changed but the
// params have not been set yet. watcher will trigger again
// when the params update
catch (e) {} // eslint-disable-line no-empty
}, true);

$state.replace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ define(function (require) {
var typeName = source.typeName;
if (source.visState) {
try { typeName = JSON.parse(source.visState).type; }
catch (e) { /* missing typename handled below */ }
catch (e) { /* missing typename handled below */ } // eslint-disable-line no-empty
}

if (!typeName || !visTypes.byName[typeName]) {
Expand Down
4 changes: 2 additions & 2 deletions src/ui/public/utils/query_string.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ define(function (require) {
function tryDecodeURIComponent(value) {
try {
return decodeURIComponent(value);
} catch (e) {
// Ignore any invalid uri component
}
// Ignore any invalid uri component
catch (e) {} // eslint-disable-line no-empty
}

/**
Expand Down