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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -69,7 +69,7 @@ class WordpressPluginTestedVersion extends BaseWordpressPlatform {
|
||||
static render({ version, color }) {
|
||||
return {
|
||||
message: `${addv(version)} tested`,
|
||||
color: color,
|
||||
color,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user