appbaseio/mirage

View on GitHub
app/queryBlocks/queryBlocks.component.ts

Summary

Maintainability
D
2 days
Test Coverage

Function buildQuery has 178 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  buildQuery() {
    var self = this;
    var results = this.result.resultQuery.result;
    var es_final = {};

Severity: Major
Found in app/queryBlocks/queryBlocks.component.ts - About 7 hrs to fix

    File queryBlocks.component.ts has 436 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import {
      Component,
      OnInit,
      OnChanges,
      EventEmitter,
    Severity: Minor
    Found in app/queryBlocks/queryBlocks.component.ts - About 6 hrs to fix

      Function buildQuery has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
      Open

        buildQuery() {
          var self = this;
          var results = this.result.resultQuery.result;
          var es_final = {};
      
      
      Severity: Minor
      Found in app/queryBlocks/queryBlocks.component.ts - About 2 hrs 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

      QueryBlocksComponent has 21 functions (exceeds 20 allowed). Consider refactoring.
      Open

      @Component({
        selector: "query-blocks",
        templateUrl: "./app/queryBlocks/queryBlocks.component.html",
        inputs: [
          "detectChange",
      Severity: Minor
      Found in app/queryBlocks/queryBlocks.component.ts - About 2 hrs to fix

        Avoid deeply nested control flow statements.
        Open

                      if (results.length > 1) {
                        finalresult[currentBool] = result.availableQuery;
                      } else {
                        finalresult = result.availableQuery[0];
                        es_final["query"] = finalresult;
        Severity: Major
        Found in app/queryBlocks/queryBlocks.component.ts - About 45 mins to fix

          Function createQuery has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

            createQuery(val, childExists) {
              var queryParam = {
                query: "*",
                field: "*",
                queryFlag: true,
          Severity: Minor
          Found in app/queryBlocks/queryBlocks.component.ts - About 35 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

          object access via string literals is disallowed
          Open

                        current_query["bool"]["nested"]["score_mode"] =

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                        current_query["bool"]["nested"]["score_mode"] =

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                      finalresult["nested"] = {

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                          val1.appliedQuery["bool"]["must"].push(val0.appliedQuery);

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                  es_final["query"] = {

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                          es_final["query"] = finalresult;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Identifier 'internalObj' is never reassigned; use 'const' instead of 'var'.
          Open

                var internalObj = JSON.parse(JSON.stringify(this.queryFormat.internal));

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          Identifier 'currentBool' is never reassigned; use 'const' instead of 'var'.
          Open

                    var currentBool = self.queryList["boolQuery"][result["boolparam"]];

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          Identifier 'self' is never reassigned; use 'const' instead of 'var'.
          Open

              var self = this;

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          object access via string literals is disallowed
          Open

                      current_query["bool"][currentBool] = result1.availableQuery;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                        current_query["bool"]["nested"]["score_mode"] =

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

              var queryObj = JSON.parse(JSON.stringify(self.queryFormat.internal));

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

              var results = this.result.resultQuery.result;

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Identifier 'childExists' is never reassigned; use 'const' instead of 'var'.
          Open

                  var childExists = false;

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          object access via string literals is disallowed
          Open

                    es_final["query"] = {

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                        obj[sortObj.selectedField]["mode"] = sortObj.mode;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                        obj[sortObj.selectedField]["missing"] = sortObj.missing;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                this.urlShare.inputs["result"] = this.result;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

                var sampleobj = this.setQueryFormat(

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Identifier 'currentBool' is never reassigned; use 'const' instead of 'var'.
          Open

                      var currentBool = self.queryList["boolQuery"][result1["boolparam"]];

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          object access via string literals is disallowed
          Open

                  es_final["query"] = es_final["query"]["bool"];

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                    es_final["sort"].push(obj);

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                          val1.appliedQuery["bool"]["must"].push(val0.appliedQuery);

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

                      var current_query = {

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          non-arrow functions are forbidden
          Open

                results.forEach(function(result) {

          Rule: only-arrow-functions

          Disallows traditional (non-arrow) function expressions.

          Note that non-arrow functions are allowed if 'this' appears somewhere in its body (as such functions cannot be converted to arrow functions).

          Rationale

          Traditional functions don't bind lexical scope, which can lead to unexpected behavior when accessing 'this'.

          Config

          Two arguments may be optionally provided:

          • "allow-declarations" allows standalone function declarations.
          • "allow-named-functions" allows the expression function foo() {} but not function() {}.
          Examples
          "only-arrow-functions": true
          "only-arrow-functions": true,allow-declarations,allow-named-functions
          Schema
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "allow-declarations",
                "allow-named-functions"
              ]
            },
            "minLength": 0,
            "maxLength": 1
          }

          For more information see this page.

          non-arrow functions are forbidden
          Open

                results.forEach(function(result0) {

          Rule: only-arrow-functions

          Disallows traditional (non-arrow) function expressions.

          Note that non-arrow functions are allowed if 'this' appears somewhere in its body (as such functions cannot be converted to arrow functions).

          Rationale

          Traditional functions don't bind lexical scope, which can lead to unexpected behavior when accessing 'this'.

          Config

          Two arguments may be optionally provided:

          • "allow-declarations" allows standalone function declarations.
          • "allow-named-functions" allows the expression function foo() {} but not function() {}.
          Examples
          "only-arrow-functions": true
          "only-arrow-functions": true,allow-declarations,allow-named-functions
          Schema
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "allow-declarations",
                "allow-named-functions"
              ]
            },
            "minLength": 0,
            "maxLength": 1
          }

          For more information see this page.

          non-arrow functions are forbidden
          Open

                results.forEach(function(result) {

          Rule: only-arrow-functions

          Disallows traditional (non-arrow) function expressions.

          Note that non-arrow functions are allowed if 'this' appears somewhere in its body (as such functions cannot be converted to arrow functions).

          Rationale

          Traditional functions don't bind lexical scope, which can lead to unexpected behavior when accessing 'this'.

          Config

          Two arguments may be optionally provided:

          • "allow-declarations" allows standalone function declarations.
          • "allow-named-functions" allows the expression function foo() {} but not function() {}.
          Examples
          "only-arrow-functions": true
          "only-arrow-functions": true,allow-declarations,allow-named-functions
          Schema
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "allow-declarations",
                "allow-named-functions"
              ]
            },
            "minLength": 0,
            "maxLength": 1
          }

          For more information see this page.

          Identifier 'sortObj' is never reassigned; use 'const' instead of 'let'.
          Open

              let sortObj = {

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          comment must start with a space
          Open

              //set input state

          Rule: comment-format

          Enforces formatting rules for single-line comments.

          Rationale

          Helps maintain a consistent, readable style in your codebase.

          Notes
          • Has Fix

          Config

          Four arguments may be optionally provided:

          • "check-space" requires that all single-line comments must begin with a space, as in // comment
            • note that for comments starting with multiple slashes, e.g. ///, leading slashes are ignored
            • TypeScript reference comments are ignored completely
          • "check-lowercase" requires that the first non-whitespace character of a comment must be lowercase, if applicable.
          • "check-uppercase" requires that the first non-whitespace character of a comment must be uppercase, if applicable.
          • "allow-trailing-lowercase" allows that only the first comment of a series of comments needs to be uppercase.
            • requires "check-uppercase"
            • comments must start at the same position

          Exceptions to "check-lowercase" or "check-uppercase" can be managed with object that may be passed as last argument.

          One of two options can be provided in this object:

          • "ignore-words" - array of strings - words that will be ignored at the beginning of the comment.
          • "ignore-pattern" - string - RegExp pattern that will be ignored at the beginning of the comment.
          Examples
          "comment-format": true,check-space,check-uppercase,allow-trailing-lowercase
          "comment-format": true,check-lowercase,[object Object]
          "comment-format": true,check-lowercase,[object Object]
          Schema
          {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "check-space",
                    "check-lowercase",
                    "check-uppercase",
                    "allow-trailing-lowercase"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "ignore-words": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "ignore-pattern": {
                      "type": "string"
                    }
                  },
                  "minProperties": 1,
                  "maxProperties": 1
                }
              ]
            },
            "minLength": 1,
            "maxLength": 5
          }

          For more information see this page.

          object access via string literals is disallowed
          Open

                      var currentBool = self.queryList["boolQuery"][result1["boolparam"]];

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                    var currentBool = self.queryList["boolQuery"][result["boolparam"]];

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                es_final["query"] = {

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

                var finalresult = {};

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

                      var currentBool = self.queryList["boolQuery"][result1["boolparam"]];

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Identifier 'queryObj' is never reassigned; use 'const' instead of 'var'.
          Open

                var queryObj = JSON.parse(JSON.stringify(this.queryFormat.bool));

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          Identifier 'es_final' is never reassigned; use 'const' instead of 'var'.
          Open

              var es_final = {};

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          object access via string literals is disallowed
          Open

                        current_query["bool"]["minimum_should_match"] =

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                        current_query["bool"]["nested"]["path"] = result1.path;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

                var internalObj = JSON.parse(JSON.stringify(this.queryFormat.internal));

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          non-arrow functions are forbidden
          Open

                  results.forEach(function(result1) {

          Rule: only-arrow-functions

          Disallows traditional (non-arrow) function expressions.

          Note that non-arrow functions are allowed if 'this' appears somewhere in its body (as such functions cannot be converted to arrow functions).

          Rationale

          Traditional functions don't bind lexical scope, which can lead to unexpected behavior when accessing 'this'.

          Config

          Two arguments may be optionally provided:

          • "allow-declarations" allows standalone function declarations.
          • "allow-named-functions" allows the expression function foo() {} but not function() {}.
          Examples
          "only-arrow-functions": true
          "only-arrow-functions": true,allow-declarations,allow-named-functions
          Schema
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "allow-declarations",
                "allow-named-functions"
              ]
            },
            "minLength": 0,
            "maxLength": 1
          }

          For more information see this page.

          block is empty
          Open

                ) {
                } else {

          Rule: no-empty

          Disallows empty blocks.

          Blocks with a comment inside are not considered empty.

          Rationale

          Empty blocks are often indicators of missing code.

          Config

          If allow-empty-catch is specified, then catch blocks are allowed to be empty. If allow-empty-functions is specified, then function definitions are allowed to be empty.

          Examples
          "no-empty": true
          "no-empty": true,allow-empty-catch
          "no-empty": true,allow-empty-functions
          "no-empty": true,allow-empty-catch,allow-empty-functions
          Schema
          {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "allow-empty-catch"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "allow-empty-functions"
                  ]
                }
              ]
            }
          }

          For more information see this page.

          object access via string literals is disallowed
          Open

                    if (self.queryList["boolQuery"][results[0]["boolparam"]] === "must") {

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                      es_final["query"] = {

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                        current_query["bool"]["nested"]["path"] = result1.path;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

                var target = $(e.target);

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          non-arrow functions are forbidden
          Open

                      function(val1) {

          Rule: only-arrow-functions

          Disallows traditional (non-arrow) function expressions.

          Note that non-arrow functions are allowed if 'this' appears somewhere in its body (as such functions cannot be converted to arrow functions).

          Rationale

          Traditional functions don't bind lexical scope, which can lead to unexpected behavior when accessing 'this'.

          Config

          Two arguments may be optionally provided:

          • "allow-declarations" allows standalone function declarations.
          • "allow-named-functions" allows the expression function foo() {} but not function() {}.
          Examples
          "only-arrow-functions": true
          "only-arrow-functions": true,allow-declarations,allow-named-functions
          Schema
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "allow-declarations",
                "allow-named-functions"
              ]
            },
            "minLength": 0,
            "maxLength": 1
          }

          For more information see this page.

          object access via string literals is disallowed
          Open

                    if (self.queryList["boolQuery"][results[0]["boolparam"]] === "must") {

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                      es_final["query"] = finalresult;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                    var currentBool = self.queryList["boolQuery"][result["boolparam"]];

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                        obj["_geo_distance"]["mode"] = sortObj.mode;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                        obj["_geo_distance"]["mode"] = sortObj.mode;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

                    var currentBool = self.queryList["boolQuery"][result["boolparam"]];

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          non-arrow functions are forbidden
          Open

              $("body").on("click", function(e) {

          Rule: only-arrow-functions

          Disallows traditional (non-arrow) function expressions.

          Note that non-arrow functions are allowed if 'this' appears somewhere in its body (as such functions cannot be converted to arrow functions).

          Rationale

          Traditional functions don't bind lexical scope, which can lead to unexpected behavior when accessing 'this'.

          Config

          Two arguments may be optionally provided:

          • "allow-declarations" allows standalone function declarations.
          • "allow-named-functions" allows the expression function foo() {} but not function() {}.
          Examples
          "only-arrow-functions": true
          "only-arrow-functions": true,allow-declarations,allow-named-functions
          Schema
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "allow-declarations",
                "allow-named-functions"
              ]
            },
            "minLength": 0,
            "maxLength": 1
          }

          For more information see this page.

          Identifier 'current_query' is never reassigned; use 'const' instead of 'var'.
          Open

                      var current_query = {

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          Identifier 'results' is never reassigned; use 'const' instead of 'var'.
          Open

              var results = this.result.resultQuery.result;

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          object access via string literals is disallowed
          Open

                  es_final["query"] = es_final["query"]["bool"];

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

                var isBoolPresent = true;

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

              var sampleobj = {};

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Identifier 'queryObj' is never reassigned; use 'const' instead of 'var'.
          Open

              var queryObj = JSON.parse(JSON.stringify(self.queryFormat.internal));

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          object access via string literals is disallowed
          Open

                      es_final["sort"] = [];

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

              var self = this;

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

              var objChain = [];

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          non-arrow functions are forbidden
          Open

              result.internal.forEach(function(val) {

          Rule: only-arrow-functions

          Disallows traditional (non-arrow) function expressions.

          Note that non-arrow functions are allowed if 'this' appears somewhere in its body (as such functions cannot be converted to arrow functions).

          Rationale

          Traditional functions don't bind lexical scope, which can lead to unexpected behavior when accessing 'this'.

          Config

          Two arguments may be optionally provided:

          • "allow-declarations" allows standalone function declarations.
          • "allow-named-functions" allows the expression function foo() {} but not function() {}.
          Examples
          "only-arrow-functions": true
          "only-arrow-functions": true,allow-declarations,allow-named-functions
          Schema
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "allow-declarations",
                "allow-named-functions"
              ]
            },
            "minLength": 0,
            "maxLength": 1
          }

          For more information see this page.

          object access via string literals is disallowed
          Open

                        current_query["bool"]["minimum_should_match"] =

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

              var self = this;

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

              var result = this.result.resultQuery.result[0];

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                        current_query["bool"]["nested"]["path"] = result1.path;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                        delete finalresult["minimum_should_match"];

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          object access via string literals is disallowed
          Open

                  es_final["query"] = es_final["query"]["bool"];

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

              var queryParam = {

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          " should be '
          Open

                        obj["_geo_distance"]["mode"] = sortObj.mode;

          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

                query: "*",

          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.

          object access via string literals is disallowed
          Open

                      var currentBool = self.queryList["boolQuery"][result1["boolparam"]];

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

                var queryObj = JSON.parse(JSON.stringify(this.queryFormat.bool));

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

              var es_final = {};

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          Identifier 'self' is never reassigned; use 'const' instead of 'var'.
          Open

              var self = this;

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          " should be '
          Open

            templateUrl: "./app/queryBlocks/queryBlocks.component.html",

          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

                        current_query["bool"]["minimum_should_match"] =

          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

                      self.joiningQuery[self.joiningQueryParam] === "parent_id"

          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.

          object access via string literals is disallowed
          Open

                      finalresult["minimum_should_match"] = result.minimum_should_match;

          Rule: no-string-literal

          Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

          Rationale

          If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-string-literal": true

          For more information see this page.

          Forbidden 'var' keyword, use 'let' or 'const' instead
          Open

                  var childExists = false;

          Rule: no-var-keyword

          Disallows usage of the var keyword.

          Use let or const instead.

          Rationale

          Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

          Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

          Notes
          • Has Fix

          Config

          Not configurable.

          Examples
          "no-var-keyword": true

          For more information see this page.

          " should be '
          Open

                minimum_should_match: "",

          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: "",

          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

                score_mode: ""

          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

                trigger: "hover",

          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

                  es_final["query"] = {

          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

                    if (self.queryList["boolQuery"][results[0]["boolparam"]] === "must") {

          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

                      var currentBool = self.queryList["boolQuery"][result1["boolparam"]];

          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

                          es_final["query"] = finalresult;

          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

                      if (finalresult.hasOwnProperty("minimum_should_match")) {

          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

                        obj[sortObj.selectedField]["missing"] = sortObj.missing;

          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

                field: "*",

          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

              $("#saveQueryModal").modal("show");

          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

                field: "",

          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

                query: "",

          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

                placement: "top",

          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

                      es_final["query"] = finalresult;

          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

                    var currentBool = self.queryList["boolQuery"][result["boolparam"]];

          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

                    var currentBool = self.queryList["boolQuery"][result["boolparam"]];

          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

                  es_final["query"] = es_final["query"]["bool"];

          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

                        obj["_geo_distance"]["mode"] = sortObj.mode;

          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.

          Identifier 'queryParam' is never reassigned; use 'const' instead of 'var'.
          Open

              var queryParam = {

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          " should be '
          Open

                input: "",

          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

                selectedField: "",

          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

                      self.joiningQuery[self.joiningQueryParam] === "has_child"

          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

                es_final["query"] = {

          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

              if (val.analyzeTest === "" || val.type === "" || val.query === "") {

          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.

          Identifier 'result' is never reassigned; use 'const' instead of 'var'.
          Open

              var result = this.result.resultQuery.result[0];

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          Identifier 'sampleobj' is never reassigned; use 'const' instead of 'var'.
          Open

              var sampleobj = {};

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          Don't bind this without arguments as a scope to a function. Use an arrow lambda instead.
          Open

                function(val0) {
                  if (val0.parent_id != 0) {
                    result.forEach(
                      function(val1) {
                        if (val0.parent_id == val1.id) {

          Rule: unnecessary-bind

          Prevents unnecessary and/or misleading scope bindings on functions.

          Rationale

          function expressions that are immediately bound to this are equivalent to () => arrow lambdas. Additionally, there's no use in binding a scope to an arrow lambda, as it already has one.

          Notes
          • Requires Type Info

          Config

          Not configurable.

          Examples
          "unnecessary-bind": true

          For more information see this page.

          " should be '
          Open

          import { queryList } from "../shared/queryList";

          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

                selectedQuery: "",

          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

                placement: "top",

          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

                order: "asc",

          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

                    if (self.queryList["boolQuery"][results[0]["boolparam"]] === "must") {

          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

                      if (self.joiningQuery[self.joiningQueryParam] === "nested") {

          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

                        current_query["bool"]["nested"]["score_mode"] =

          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

                      finalresult["nested"] = {

          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

                  es_final["query"] = es_final["query"]["bool"];

          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

                  es_final["query"] = es_final["query"]["bool"];

          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

              if (val.analyzeTest === "" || val.type === "" || val.query === "") {

          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

              $("#saveQueryModal").modal("show");

          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

              "setProp",

          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

                selectedField: "",

          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: ""

          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

                trigger: "hover",

          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

                        current_query["bool"]["nested"]["score_mode"] =

          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

                        ["_geo_distance"]: {

          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

                  $(".editable-pack").removeClass("on");

          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

                        if (val0.parent_id == val1.id) {

          Rule: triple-equals

          Requires === and !== in place of == and !=.

          Config

          Two arguments may be optionally provided:

          • "allow-null-check" allows == and != when comparing to null.
          • "allow-undefined-check" allows == and != when comparing to undefined.
          Examples
          "triple-equals": true
          "triple-equals": true,allow-null-check
          "triple-equals": true,allow-undefined-check
          Schema
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "allow-null-check",
                "allow-undefined-check"
              ]
            },
            "minLength": 0,
            "maxLength": 2
          }

          For more information see this page.

          Assigning this reference to local variable not allowed: self.
          Open

              var self = this;

          Rule: no-this-assignment

          Disallows unnecessary references to this.

          Rationale

          Assigning a variable to this instead of properly using arrow lambdas may be a symptom of pre-ES6 practices or not managing scope well.

          Instead of storing a reference to this and using it inside a function () {:

          const self = this;
          
          setTimeout(function () {
              self.doWork();
          });

          Use () => arrow lambdas, as they preserve this scope for you:

          setTimeout(() => {
              this.doWork();
          });

          Config

          Two options may be provided on an object:

          • allow-destructuring allows using destructuring to access members of this (e.g. { foo, bar } = this;).
          • allowed-names may be specified as a list of regular expressions to match allowed variable names.
          Examples
          "no-this-assignment": true
          "no-this-assignment": true,[object Object]
          Schema
          {
            "additionalProperties": false,
            "properties": {
              "allow-destructuring": {
                "type": "boolean"
              },
              "allowed-names": {
                "listType": "string",
                "type": "list"
              }
            },
            "type": "object"
          }

          For more information see this page.

          " should be '
          Open

                  "Shows historical results, useful when your data is not changing quickly.",

          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

                    es_final["query"] = {

          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

                        current_query["bool"]["minimum_should_match"] =

          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

                      self.joiningQuery[self.joiningQueryParam] === "nested"

          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

                      finalresult["minimum_should_match"] = result.minimum_should_match;

          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

                        delete finalresult["minimum_should_match"];

          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

              if (val.analyzeTest === "" || val.type === "" || val.query === "") {

          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

              $("body").on("click", function(e) {

          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

                      var currentBool = self.queryList["boolQuery"][result1["boolparam"]];

          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

                console.log("coming");

          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

              $("body").on("click", function(e) {

          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

                name: "responseMode",

          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.

          Assigning this reference to local variable not allowed: self.
          Open

              var self = this;

          Rule: no-this-assignment

          Disallows unnecessary references to this.

          Rationale

          Assigning a variable to this instead of properly using arrow lambdas may be a symptom of pre-ES6 practices or not managing scope well.

          Instead of storing a reference to this and using it inside a function () {:

          const self = this;
          
          setTimeout(function () {
              self.doWork();
          });

          Use () => arrow lambdas, as they preserve this scope for you:

          setTimeout(() => {
              this.doWork();
          });

          Config

          Two options may be provided on an object:

          • allow-destructuring allows using destructuring to access members of this (e.g. { foo, bar } = this;).
          • allowed-names may be specified as a list of regular expressions to match allowed variable names.
          Examples
          "no-this-assignment": true
          "no-this-assignment": true,[object Object]
          Schema
          {
            "additionalProperties": false,
            "properties": {
              "allow-destructuring": {
                "type": "boolean"
              },
              "allowed-names": {
                "listType": "string",
                "type": "list"
              }
            },
            "type": "object"
          }

          For more information see this page.

          " should be '
          Open

              "saveQuery",

          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

              "setDocSample"

          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

                    if (self.queryList["boolQuery"][results[0]["boolparam"]] === "must") {

          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

                    if (currentBool === "should") {

          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

                          val1.appliedQuery["bool"]["must"].push(val0.appliedQuery);

          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

                    if (result1.parent_id == result0.id) {

          Rule: triple-equals

          Requires === and !== in place of == and !=.

          Config

          Two arguments may be optionally provided:

          • "allow-null-check" allows == and != when comparing to null.
          • "allow-undefined-check" allows == and != when comparing to undefined.
          Examples
          "triple-equals": true
          "triple-equals": true,allow-null-check
          "triple-equals": true,allow-undefined-check
          Schema
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "allow-null-check",
                "allow-undefined-check"
              ]
            },
            "minLength": 0,
            "maxLength": 2
          }

          For more information see this page.

          != should be !==
          Open

                  if (val0.parent_id != 0) {

          Rule: triple-equals

          Requires === and !== in place of == and !=.

          Config

          Two arguments may be optionally provided:

          • "allow-null-check" allows == and != when comparing to null.
          • "allow-undefined-check" allows == and != when comparing to undefined.
          Examples
          "triple-equals": true
          "triple-equals": true,allow-null-check
          "triple-equals": true,allow-undefined-check
          Schema
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "allow-null-check",
                "allow-undefined-check"
              ]
            },
            "minLength": 0,
            "maxLength": 2
          }

          For more information see this page.

          " should be '
          Open

                path: "",

          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

                          unit: sortObj._geo_distance.unit || "m"

          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

                        obj[sortObj.selectedField]["mode"] = sortObj.mode;

          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

                this.urlShare.inputs["result"] = this.result;

          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

                  target.parents(".editable-pack").length

          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

            selector: "query-blocks",

          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

                analyzeTest: "",

          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

                  "Shows an interactive stream of results, useful when your data is changing quickly.",

          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

                      current_query["bool"][currentBool] = result1.availableQuery;

          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

                    es_final["sort"].push(obj);

          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

              if (val.field === "") {

          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

                $(".responseMode .historic").popover(this.popoverInfo.historic);

          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

                      if (currentBool === "should") {

          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

                      self.joiningQuery[self.joiningQueryParam] === "has_parent"

          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

                      if (result.internal.length > 1 || currentBool !== "must") {

          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

                      es_final["sort"] = [];

          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

                  target.hasClass(".editable-pack") ||

          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.

          Identifier 'objChain' is never reassigned; use 'const' instead of 'var'.
          Open

              var objChain = [];

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          " should be '
          Open

          } from "@angular/core";

          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

              "detectChange",

          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

                container: "body"

          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

                        current_query["bool"]["nested"]["path"] = result1.path;

          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

                        current_query["bool"]["nested"]["path"] = result1.path;

          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

                    if (!es_final.hasOwnProperty("sort")) {

          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

                          val1.appliedQuery["bool"]["must"].push(val0.appliedQuery);

          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

                $(".responseMode .stream").popover(this.popoverInfo.stream);

          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.

          Identifier 'sampleobj' is never reassigned; use 'const' instead of 'var'.
          Open

                var sampleobj = this.setQueryFormat(

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          Don't bind this without arguments as a scope to a function. Use an arrow lambda instead.
          Open

                      function(val1) {
                        if (val0.parent_id == val1.id) {
                          val1.appliedQuery["bool"]["must"].push(val0.appliedQuery);
                        }
                      }.bind(this)

          Rule: unnecessary-bind

          Prevents unnecessary and/or misleading scope bindings on functions.

          Rationale

          function expressions that are immediately bound to this are equivalent to () => arrow lambdas. Additionally, there's no use in binding a scope to an arrow lambda, as it already has one.

          Notes
          • Requires Type Info

          Config

          Not configurable.

          Examples
          "unnecessary-bind": true

          For more information see this page.

          " should be '
          Open

                parent_type: "",

          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 joiningQuery: any = [""];

          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

                alert("Select type first.");

          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

                        current_query["bool"]["nested"]["path"] = result1.path;

          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

                  $(".editable-pack").removeClass("on");

          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.

          Identifier 'target' is never reassigned; use 'const' instead of 'var'.
          Open

                var target = $(e.target);

          Rule: prefer-const

          Requires that variable declarations use const instead of let and var if possible.

          If a variable is only assigned to once when it is declared, it should be declared using 'const'

          Notes
          • Has Fix

          Config

          An optional object containing the property "destructuring" with two possible values:

          • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
          • "all" - Only warns if all variables in destructuring can be const.
          Examples
          "prefer-const": true
          "prefer-const": true,[object Object]
          Schema
          {
            "type": "object",
            "properties": {
              "destructuring": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              }
            }
          }

          For more information see this page.

          Don't bind this without arguments as a scope to a function. Use an arrow lambda instead.
          Open

                function(val0) {
                  var childExists = false;
                  val0.appliedQuery = this.createQuery(val0, childExists);
                }.bind(this)

          Rule: unnecessary-bind

          Prevents unnecessary and/or misleading scope bindings on functions.

          Rationale

          function expressions that are immediately bound to this are equivalent to () => arrow lambdas. Additionally, there's no use in binding a scope to an arrow lambda, as it already has one.

          Notes
          • Requires Type Info

          Config

          Not configurable.

          Examples
          "unnecessary-bind": true

          For more information see this page.

          " should be '
          Open

              "editorHookHelp",

          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

                container: "body"

          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

                      es_final["query"] = {

          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

                        current_query["bool"]["nested"]["score_mode"] =

          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.

          There are no issues that match your filters.

          Category
          Status