Merge pull request #4580 from spalger/lint/es7Support
[linting] add support for async/await with babel-eslint
This commit is contained in:
commit
389ef2ab42
|
@ -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…
Reference in a new issue