diff --git a/package.json b/package.json index 20da134d0f..07adf24fa8 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,10 @@ "babel-loader": "^6.2", "babel-preset-es2015": "^6.6.0", "bower": "^1.7.7", - "eslint": "^2.4.0", - "eslint-config-airbnb": "^6.1.0", "html-minifier": "^1.2.0", "vulcanize": "^1.14.7", + "eslint": "^2.5.1", + "eslint-config-airbnb": "^6.2.0", "webpack": "^1.12" } } diff --git a/src/components/state-history-chart-line.js b/src/components/state-history-chart-line.js index 2959d0f12b..b677d346ee 100644 --- a/src/components/state-history-chart-line.js +++ b/src/components/state-history-chart-line.js @@ -118,7 +118,7 @@ export default new Polymer({ // value that should not be interpolated at the same time that our new // line will be published. data.push([values[0]].concat(prevValues.slice(1).map( - (val, index) => noInterpolations[index] ? val : null))); + (val, index) => (noInterpolations[index] ? val : null)))); } data.push(values); prevValues = values; diff --git a/src/dialogs/more-info-dialog.js b/src/dialogs/more-info-dialog.js index 0c5e242257..a1d7241b3f 100644 --- a/src/dialogs/more-info-dialog.js +++ b/src/dialogs/more-info-dialog.js @@ -33,7 +33,7 @@ export default new Polymer({ type: Object, bindNuclear: [ moreInfoGetters.currentEntityHistory, - (history) => history ? [history] : false, + (history) => (history ? [history] : false), ], }, diff --git a/src/layouts/partial-dev-call-service.js b/src/layouts/partial-dev-call-service.js index a22e1c1ce5..8f51925867 100644 --- a/src/layouts/partial-dev-call-service.js +++ b/src/layouts/partial-dev-call-service.js @@ -49,9 +49,9 @@ export default new Polymer({ computeDescription(domain, service) { return reactor.evaluate([ serviceGetters.entityMap, - map => map.has(domain) && map.get(domain).get('services').has(service) ? - JSON.stringify(map.get(domain).get('services').get(service).toJS(), null, 2) : - 'No description available', + map => (map.has(domain) && map.get(domain).get('services').has(service) ? + JSON.stringify(map.get(domain).get('services').get(service).toJS(), null, 2) : + 'No description available'), ]); }, diff --git a/src/util/attribute-class-names.js b/src/util/attribute-class-names.js index 5e16c14ee8..6d46106bcd 100644 --- a/src/util/attribute-class-names.js +++ b/src/util/attribute-class-names.js @@ -1,6 +1,6 @@ export default function attributeClassNames(stateObj, attributes) { if (!stateObj) return ''; return attributes.map( - (attribute) => attribute in stateObj.attributes ? `has-${attribute}` : '' + (attribute) => (attribute in stateObj.attributes ? `has-${attribute}` : '') ).join(' '); }