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

@@ -38,7 +38,7 @@ module.exports = class BaseWordpress extends BaseJsonService {
qs: {
action: `${this.constructor.extensionType}_information`,
request: {
slug: slug,
slug,
fields: {
active_installs: 1,
sections: 0,

View File

@@ -177,7 +177,7 @@ function DownloadsForInterval(interval) {
url: `https://api.wordpress.org/stats/plugin/1.0/downloads.php`,
options: {
qs: {
slug: slug,
slug,
limit: query,
},
},

View File

@@ -69,7 +69,7 @@ class WordpressPluginTestedVersion extends BaseWordpressPlatform {
static render({ version, color }) {
return {
message: `${addv(version)} tested`,
color: color,
color,
}
}