Update ESLint + fix errors
This commit is contained in:
parent
c36dfd869a
commit
51d3e9b92d
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -33,7 +33,7 @@ export default new Polymer({
|
|||
type: Object,
|
||||
bindNuclear: [
|
||||
moreInfoGetters.currentEntityHistory,
|
||||
(history) => history ? [history] : false,
|
||||
(history) => (history ? [history] : false),
|
||||
],
|
||||
},
|
||||
|
||||
|
|
|
@ -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'),
|
||||
]);
|
||||
},
|
||||
|
||||
|
|
|
@ -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(' ');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue