Enforce property shorthand (#2243)

I had to track down the right lint rule for this. We have no-useless-rename for destructuring and import/export. The one for object literals is object-shorthand.
This commit is contained in:
Paul Melnikow
2018-11-01 13:46:23 -04:00
committed by GitHub
parent b7ecbd0a0d
commit 07b282fa1f
20 changed files with 24 additions and 23 deletions

View File

@@ -41,7 +41,7 @@ module.exports = class GemDownloads extends BaseJsonService {
static render({ label, downloads }) {
return {
label: label,
label,
message: metric(downloads),
color: downloadCountColor(downloads),
}

View File

@@ -41,7 +41,7 @@ module.exports = class GemRank extends BaseJsonService {
let message = ordinalNumber(rank)
message += period === 'rt' ? '' : ' daily'
return {
message: message,
message,
color: floorCountColor(count, 10, 50, 100),
}
}