Update ESLint + fix errors

This commit is contained in:
Paulus Schoutsen 2016-03-27 08:35:01 -07:00
parent c36dfd869a
commit 51d3e9b92d
5 changed files with 8 additions and 8 deletions

View File

@ -29,10 +29,10 @@
"babel-loader": "^6.2", "babel-loader": "^6.2",
"babel-preset-es2015": "^6.6.0", "babel-preset-es2015": "^6.6.0",
"bower": "^1.7.7", "bower": "^1.7.7",
"eslint": "^2.4.0",
"eslint-config-airbnb": "^6.1.0",
"html-minifier": "^1.2.0", "html-minifier": "^1.2.0",
"vulcanize": "^1.14.7", "vulcanize": "^1.14.7",
"eslint": "^2.5.1",
"eslint-config-airbnb": "^6.2.0",
"webpack": "^1.12" "webpack": "^1.12"
} }
} }

View File

@ -118,7 +118,7 @@ export default new Polymer({
// value that should not be interpolated at the same time that our new // value that should not be interpolated at the same time that our new
// line will be published. // line will be published.
data.push([values[0]].concat(prevValues.slice(1).map( data.push([values[0]].concat(prevValues.slice(1).map(
(val, index) => noInterpolations[index] ? val : null))); (val, index) => (noInterpolations[index] ? val : null))));
} }
data.push(values); data.push(values);
prevValues = values; prevValues = values;

View File

@ -33,7 +33,7 @@ export default new Polymer({
type: Object, type: Object,
bindNuclear: [ bindNuclear: [
moreInfoGetters.currentEntityHistory, moreInfoGetters.currentEntityHistory,
(history) => history ? [history] : false, (history) => (history ? [history] : false),
], ],
}, },

View File

@ -49,9 +49,9 @@ export default new Polymer({
computeDescription(domain, service) { computeDescription(domain, service) {
return reactor.evaluate([ return reactor.evaluate([
serviceGetters.entityMap, serviceGetters.entityMap,
map => map.has(domain) && map.get(domain).get('services').has(service) ? map => (map.has(domain) && map.get(domain).get('services').has(service) ?
JSON.stringify(map.get(domain).get('services').get(service).toJS(), null, 2) : JSON.stringify(map.get(domain).get('services').get(service).toJS(), null, 2) :
'No description available', 'No description available'),
]); ]);
}, },

View File

@ -1,6 +1,6 @@
export default function attributeClassNames(stateObj, attributes) { export default function attributeClassNames(stateObj, attributes) {
if (!stateObj) return ''; if (!stateObj) return '';
return attributes.map( return attributes.map(
(attribute) => attribute in stateObj.attributes ? `has-${attribute}` : '' (attribute) => (attribute in stateObj.attributes ? `has-${attribute}` : '')
).join(' '); ).join(' ');
} }