manishrc/promostandards-sdk-js

View on GitHub

Showing 108 of 108 total issues

File templates.ts has 595 lines of code (exceeds 250 allowed). Consider refactoring.
Open

const pug = require("pug");

// Inventory
// getInventoryLevels()
export const getInventoryLevels: () => string = pug.compile(`
Severity: Major
Found in lib/templates.ts - About 1 day to fix

    Function promoStandardsAPIRequest has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public promoStandardsAPIRequest(
          serviceAndMethodName: string,
          params: any
        ): Promise<any> {
          return new Promise((resolve, reject) => {
    Severity: Minor
    Found in lib/PromoStandards.ts - About 1 hr to fix

      Function replaceArrayTagsWithArrays has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
      Open

      export const replaceArrayTagsWithArrays = (obj: any) => {
        let key;
        if (obj instanceof Object) {
          for (key in obj) {
            if (obj.hasOwnProperty(key) && /.*Array/.test(key)) {
      Severity: Minor
      Found in lib/Utils.ts - About 45 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function skipLevel has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      export const skipLevel = (obj: any) => {
        let key: string;
        if (obj instanceof Object) {
          for (key in obj) {
            if (obj.hasOwnProperty(key)) return obj[key];
      Severity: Minor
      Found in lib/Utils.ts - About 25 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      " should be '
      Open

          | "getMediaDateModified"
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

          | "getOrderStatusDetails"
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              "ProductPricingAndConfiguration.getAvailableLocations"
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      Missing trailing comma
      Open

              "ProductData.getProductSellable"
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: trailing-comma

      Requires or disallows trailing commas in array and object literals, destructuring assignments, function typings, named imports and exports and function parameters.

      Notes
      • Has Fix

      Config

      One argument which is an object with the keys multiline and singleline. Both can be set to a string ("always" or "never") or an object.

      The object can contain any of the following keys: "arrays", "objects", "functions", "imports", "exports", and "typeLiterals"; each key can have one of the following values: "always", "never", and "ignore". Any missing keys will default to "ignore".

      • "multiline" checks multi-line object literals.
      • "singleline" checks single-line object literals.

      An array is considered "multiline" if its closing bracket is on a line after the last array element. The same general logic is followed for object literals, function typings, named import statements and function parameters.

      To align this rule with the ECMAScript specification that is implemented in modern JavaScript VMs, there is a third option esSpecCompliant. Set this option to true to disallow trailing comma on object and array rest and rest parameters.

      Examples
      "trailing-comma": true,[object Object]
      "trailing-comma": true,[object Object]
      Schema
      {
        "type": "object",
        "properties": {
          "multiline": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "always",
                  "never"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "arrays": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "exports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "functions": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "imports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "objects": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "typeLiterals": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  }
                }
              }
            ]
          },
          "singleline": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "always",
                  "never"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "arrays": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "exports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "functions": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "imports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "objects": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "typeLiterals": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  }
                }
              }
            ]
          },
          "esSpecCompliant": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }

      For more information see this page.

      Missing trailing comma
      Open

            shar:localizationLanguage #{localizationLanguage}`
      Severity: Minor
      Found in lib/templates.ts by tslint

      Rule: trailing-comma

      Requires or disallows trailing commas in array and object literals, destructuring assignments, function typings, named imports and exports and function parameters.

      Notes
      • Has Fix

      Config

      One argument which is an object with the keys multiline and singleline. Both can be set to a string ("always" or "never") or an object.

      The object can contain any of the following keys: "arrays", "objects", "functions", "imports", "exports", and "typeLiterals"; each key can have one of the following values: "always", "never", and "ignore". Any missing keys will default to "ignore".

      • "multiline" checks multi-line object literals.
      • "singleline" checks single-line object literals.

      An array is considered "multiline" if its closing bracket is on a line after the last array element. The same general logic is followed for object literals, function typings, named import statements and function parameters.

      To align this rule with the ECMAScript specification that is implemented in modern JavaScript VMs, there is a third option esSpecCompliant. Set this option to true to disallow trailing comma on object and array rest and rest parameters.

      Examples
      "trailing-comma": true,[object Object]
      "trailing-comma": true,[object Object]
      Schema
      {
        "type": "object",
        "properties": {
          "multiline": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "always",
                  "never"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "arrays": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "exports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "functions": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "imports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "objects": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "typeLiterals": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  }
                }
              }
            ]
          },
          "singleline": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "always",
                  "never"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "arrays": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "exports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "functions": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "imports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "objects": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "typeLiterals": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  }
                }
              }
            ]
          },
          "esSpecCompliant": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }

      For more information see this page.

      " should be '
      Open

          | "getOrderShipmentNotification"
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

          public format: ResponseFormatType = "json";
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              "Invoice.getInvoices"
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      Missing trailing comma
      Open

              ns:classType #{classType}`
      Severity: Minor
      Found in lib/templates.ts by tslint

      Rule: trailing-comma

      Requires or disallows trailing commas in array and object literals, destructuring assignments, function typings, named imports and exports and function parameters.

      Notes
      • Has Fix

      Config

      One argument which is an object with the keys multiline and singleline. Both can be set to a string ("always" or "never") or an object.

      The object can contain any of the following keys: "arrays", "objects", "functions", "imports", "exports", and "typeLiterals"; each key can have one of the following values: "always", "never", and "ignore". Any missing keys will default to "ignore".

      • "multiline" checks multi-line object literals.
      • "singleline" checks single-line object literals.

      An array is considered "multiline" if its closing bracket is on a line after the last array element. The same general logic is followed for object literals, function typings, named import statements and function parameters.

      To align this rule with the ECMAScript specification that is implemented in modern JavaScript VMs, there is a third option esSpecCompliant. Set this option to true to disallow trailing comma on object and array rest and rest parameters.

      Examples
      "trailing-comma": true,[object Object]
      "trailing-comma": true,[object Object]
      Schema
      {
        "type": "object",
        "properties": {
          "multiline": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "always",
                  "never"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "arrays": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "exports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "functions": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "imports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "objects": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "typeLiterals": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  }
                }
              }
            ]
          },
          "singleline": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "always",
                  "never"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "arrays": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "exports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "functions": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "imports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "objects": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "typeLiterals": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  }
                }
              }
            ]
          },
          "esSpecCompliant": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }

      For more information see this page.

      Missing trailing comma
      Open

              ns:shipmentDateTimeStamp #{shipmentDateTimeStamp}`
      Severity: Minor
      Found in lib/templates.ts by tslint

      Rule: trailing-comma

      Requires or disallows trailing commas in array and object literals, destructuring assignments, function typings, named imports and exports and function parameters.

      Notes
      • Has Fix

      Config

      One argument which is an object with the keys multiline and singleline. Both can be set to a string ("always" or "never") or an object.

      The object can contain any of the following keys: "arrays", "objects", "functions", "imports", "exports", and "typeLiterals"; each key can have one of the following values: "always", "never", and "ignore". Any missing keys will default to "ignore".

      • "multiline" checks multi-line object literals.
      • "singleline" checks single-line object literals.

      An array is considered "multiline" if its closing bracket is on a line after the last array element. The same general logic is followed for object literals, function typings, named import statements and function parameters.

      To align this rule with the ECMAScript specification that is implemented in modern JavaScript VMs, there is a third option esSpecCompliant. Set this option to true to disallow trailing comma on object and array rest and rest parameters.

      Examples
      "trailing-comma": true,[object Object]
      "trailing-comma": true,[object Object]
      Schema
      {
        "type": "object",
        "properties": {
          "multiline": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "always",
                  "never"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "arrays": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "exports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "functions": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "imports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "objects": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "typeLiterals": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  }
                }
              }
            ]
          },
          "singleline": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "always",
                  "never"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "arrays": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "exports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "functions": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "imports": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "objects": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  },
                  "typeLiterals": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "ignore"
                    ]
                  }
                }
              }
            ]
          },
          "esSpecCompliant": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }

      For more information see this page.

      " should be '
      Open

      "use strict";
      Severity: Minor
      Found in lib/Utils.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

          | "Inventory"
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

          | "sendPO";
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

        type ResponseFormatType = "xml" | "json";
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              "MediaContent.getMediaContent"
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              "ProductPricingAndConfiguration.getDecorationColors"
      Severity: Minor
      Found in lib/PromoStandards.ts by tslint

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      Severity
      Category
      Status
      Source
      Language