Merge pull request #4580 from spalger/lint/es7Support

[linting] add support for async/await with babel-eslint
This commit is contained in:
Jonathan Budzenski 2015-08-05 12:44:15 -05:00
commit 389ef2ab42
5 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,6 @@
---
parser: babel-eslint
env:
es6: true
amd: true

View file

@ -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",

View file

@ -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();

View file

@ -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]) {

View file

@ -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
}
/**