pumpkin-zbh / amqp_comm_example

Use shorthand property syntax for object literals JS-0240
Anti-pattern
Minor
5 occurrences in this check
Expected property shorthand
 77                // 指定消息的发送方式,支持QoS0和QoS1
 78                qos: 0,
 79                //自定义Topic的后缀
 80                topicShortName: topicShortName, 81                deviceName: [
 82                    deviceName
 83                ],
Expected property shorthand
 73                // 产品ProductKey
 74                productKey: productKey,
 75                // 要发送的消息主体,hello world Base64 String
 76                messageContent: messageContent, 77                // 指定消息的发送方式,支持QoS0和QoS1
 78                qos: 0,
 79                //自定义Topic的后缀
Expected property shorthand
 71                // 物联网平台实例ID
 72                iotInstanceId: iotInstanceId,
 73                // 产品ProductKey
 74                productKey: productKey, 75                // 要发送的消息主体,hello world Base64 String
 76                messageContent: messageContent,
 77                // 指定消息的发送方式,支持QoS0和QoS1
Expected method shorthand
  1"use strict";
  2var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3    if (k2 === undefined) k2 = k;
  4    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });  5}) : (function(o, m, k, k2) {
  6    if (k2 === undefined) k2 = k;
  7    o[k2] = m[k];
Expected property shorthand
 69        try {
 70            let request = new $Iot.BatchPubRequest({
 71                // 物联网平台实例ID
 72                iotInstanceId: iotInstanceId, 73                // 产品ProductKey
 74                productKey: productKey,
 75                // 要发送的消息主体,hello world Base64 String