mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[linting] add support for async/await with babel-eslint
This commit is contained in:
parent
435cea4fc9
commit
fdf057c234
5 changed files with 10 additions and 7 deletions
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
parser: babel-eslint
|
||||
|
||||
env:
|
||||
es6: true
|
||||
amd: true
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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]) {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue