appbaseio/mirage

View on GitHub
app/queryBlocks/singlequery/queries/simple_query_string.query.ts

Summary

Maintainability
F
1 wk
Test Coverage

Function ngOnInit has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    ngOnInit() {
        this.options = JSON.parse(JSON.stringify(this.default_options));
        try {
            if (this.appliedQuery[this.current_query]) {
                var applied = this.appliedQuery[this.current_query];
Severity: Minor
Found in app/queryBlocks/singlequery/queries/simple_query_string.query.ts - About 1 hr to fix

    Function ngOnInit has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
    Open

        ngOnInit() {
            this.options = JSON.parse(JSON.stringify(this.default_options));
            try {
                if (this.appliedQuery[this.current_query]) {
                    var applied = this.appliedQuery[this.current_query];
    Severity: Minor
    Found in app/queryBlocks/singlequery/queries/simple_query_string.query.ts - About 1 hr to fix

    Cognitive Complexity

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

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

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

    Further reading

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

        ngOnChanges() {
            if (this.selectedField != '') {
                if (this.selectedField !== this.fieldName) {
                    this.fieldName = this.selectedField;
                    this.getFormat();
    Severity: Minor
    Found in app/queryBlocks/singlequery/queries/simple_query_string.query.ts - About 25 mins to fix

    Cognitive Complexity

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

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

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

    Further reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

    export class SimpleQueryStringQuery implements OnInit, OnChanges {
        @Input() queryList: any;
        @Input() selectedField: string;
        @Input() appliedQuery: any;
        @Input() selectedQuery: string;
    app/queryBlocks/singlequery/queries/multi-match.query.ts on lines 48..214
    app/queryBlocks/singlequery/queries/query_string.query.ts on lines 48..213

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 1391.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    space indentation expected
    Open

        ];

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        };

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

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

                    var applied = this.appliedQuery[this.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.

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

                    for (let option in applied) {

    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

            if (this.selectedQuery != '') {

    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.

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

                this.optionRows.forEach(function(singleRow: any) {
                    if(singleRow.name != 'fields') {
                        queryFormat[this.queryName][singleRow.name] = singleRow.value;
                    } else {
                        var field_split = singleRow.value.split(',');

    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.

    space indentation expected
    Open

        public fieldName = '*';

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        };

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            'fields',

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            name: '',

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                content: `<span class="description">Specify one or more fields separated by comma to run a multi-field query.</span>`

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            },

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            'default_operator',

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        public singleOption = {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        constructor() {}

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

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

                            var obj = {

    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 field_split = singleRow.value.split(',');

    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.

    Expected property shorthand in object literal ('{fields}').
    Open

                fields: fields

    Rule: object-literal-shorthand

    Enforces/disallows use of ES6 object literal shorthand.

    Notes
    • Has Fix

    Config

    "always" assumed to be default option, thus with no options provided the rule enforces object literal methods and properties shorthands. With "never" option provided, any shorthand object literal syntax causes an error.

    The rule can be configured in a more granular way. With {"property": "never"} provided (which is equivalent to {"property": "never", "method": "always"}), the rule only flags property shorthand assignments, and respectively with {"method": "never"} (equivalent to {"property": "always", "method": "never"}), the rule fails only on method shorthands.

    Examples
    "object-literal-shorthand": true
    "object-literal-shorthand": true,never
    "object-literal-shorthand": true,[object Object]
    Schema
    {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "never"
          ]
        },
        {
          "type": "object",
          "properties": {
            "property": {
              "type": "string",
              "enum": [
                "never"
              ]
            },
            "method": {
              "type": "string",
              "enum": [
                "never"
              ]
            }
          },
          "minProperties": 1,
          "maxProperties": 2
        }
      ]
    }

    For more information see this page.

    Duplicate variable: 'obj'
    Open

                            var obj = {

    Rule: no-duplicate-variable

    Disallows duplicate variable declarations in the same block scope.

    This rule is only useful when using the var keyword - the compiler will detect redeclarations of let and const variables.

    Rationale

    A variable can be reassigned if necessary - there's no good reason to have a duplicate variable declaration.

    Config

    You can specify "check-parameters" to check for variables with the same name as a parameter.

    Examples
    "no-duplicate-variable": true
    "no-duplicate-variable": true,check-parameters
    Schema
    {
      "type": "string",
      "enum": [
        "check-parameters"
      ]
    }

    For more information see this page.

    space indentation expected
    Open

            content: `<span class="description">Returns matches based on SimpleQueryParser to parse its context. Simple Query String discards invalid parts of the query and never throws an exception.</span>

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        public default_options: any = [

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

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

                        var obj = {

    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.

    space indentation expected
    Open

        public queryName = '*';

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            'analyzer'

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        public placeholders: any = {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                placeholder: 'Input',

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    block is empty
    Open

        constructor() {}

    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.

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

            var queryFormat = {};

    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 fields = [this.fieldName];

    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.

    space indentation expected
    Open

        template: `<span class="col-xs-6 pd-10">

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        public current_query: string = 'simple_query_string';

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                content: `<span class="description">he default operator used if no explicit operator is specified. Can be either 'AND' or 'OR'.</span>`

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            'analyzer': {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

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

                        var other_fields = JSON.parse(JSON.stringify(applied.fields));

    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

                        if (option != 'fields' && option != 'query') {

    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.

    space indentation expected
    Open

        inputs: [ 'getQueryFormat', 'querySelector']

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        @Input() appliedQuery: any;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        @Input() selectedQuery: string;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        @Output() getQueryFormat = new EventEmitter < any > ();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            'fields': {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                title: 'fields',

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        @Input() queryList: any;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    Don't use 'Number' as a type. Avoid using the Number type. Did you mean number?
    Open

        removeOption(index: Number) {

    Rule: ban-types

    Bans specific types from being used. Does not ban the corresponding runtime objects from being used.

    Notes
    • TypeScript Only

    Config

    A list of ["regex", "optional explanation here"], which bans types that match regex

    Examples
    "ban-types": true,Object,Use {} instead.,String
    Schema
    {
      "type": "list",
      "listType": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "minLength": 1,
        "maxLength": 2
      }
    }

    For more information see this page.

    block is empty
    Open

            } catch (e) {}

    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.

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

                        var field_split = singleRow.value.split(',');

    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 'queryFormat' is never reassigned; use 'const' instead of 'var'.
    Open

            var queryFormat = {};

    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.

    space indentation expected
    Open

        public information: any = {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                title: 'analyzer',

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.options = JSON.parse(JSON.stringify(this.default_options));

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        ngOnChanges() {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            if (this.selectedField != '') {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    this.getFormat();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    this.optionRows = [];

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                this.queryFormat = this.setFormat();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                this.optionRows.forEach(function(singleRow: any) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        filterOptions() {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.options = this.default_options.filter(function(opt) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

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

                            var obj = {

    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

            setTimeout(function() {
                this.getFormat();
            }.bind(this), 300);

    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.

    space indentation expected
    Open

        selector: 'simple_query_string-query',

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        };

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            },

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        };

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                            };

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            } catch (e) {}

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    this.inputs.input.value = applied.query;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                            name: 'fields',

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        if (option != 'fields' && option != 'query') {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.optionRows[input.external].name = input.val;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                this.getFormat();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    != should be !==
    Open

                        if (option != 'fields' && option != 'query') {

    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.

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

            this.options = this.default_options.filter(function(opt) {
                var flag = true;
                this.optionRows.forEach(function(row) {
                    if(row.name === opt) {
                        flag = false;

    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.

    space indentation expected
    Open

        @Input() selectedField: string;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        public informationList: any = {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        public options: any;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        public optionRows: any = []

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        getFormat() {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                this.getQueryFormat.emit(this.queryFormat);

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        queryFormat[this.queryName][singleRow.name] = singleRow.value;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        selectOption(input: any) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    " should be '
    Open

    import { Component, OnInit, OnChanges, Input, Output, EventEmitter, ViewChild, SimpleChange } 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.

    space indentation expected
    Open

                        other_fields.splice(0, 1);

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            if (this.selectedQuery != '') {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        setFormat() {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            var fields = [this.fieldName];

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        queryFormat[this.queryName].fields = fields;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.filterOptions();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        flag = false;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.filterOptions();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.filterOptions();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    != should be !==
    Open

            if (this.selectedField != '') {

    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(singleRow.name != 'fields') {

    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.

    space indentation expected
    Open

            title: 'Simple Query String',

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            fields: 'Comma seprated values'

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            value: ''

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                            value: other_fields

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        };

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                                name: option,

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                                value: applied[option]

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                            this.optionRows.push(obj);

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        // QUERY FORMAT

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            };

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            if(this.optionRows.length) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

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

                var flag = 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 singleOption = JSON.parse(JSON.stringify(this.singleOption));

    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

                this.optionRows.forEach(function(row) {

    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 'applied' is never reassigned; use 'const' instead of 'var'.
    Open

                    var applied = this.appliedQuery[this.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.

    space indentation expected
    Open

            'default_operator': {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                content: `<span class="description">The analyzer used to analyze each term of the query when creating composite queries.</span>`

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        public inputs: any = {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    if(applied.fields.length > 1) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.filterOptions();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

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

            var singleOption = JSON.parse(JSON.stringify(this.singleOption));

    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.

    space indentation expected
    Open

                title: 'default_operator',

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            input: {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        ngOnInit() {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                if (this.appliedQuery[this.current_query]) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                query: this.inputs.input.value,

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    if(singleRow.name != 'fields') {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                });

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                value: ''

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            try {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        var other_fields = JSON.parse(JSON.stringify(applied.fields));

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.getFormat();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    this.fieldName = this.selectedField;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    this.getFormat();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            setTimeout(function() {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            var singleOption = JSON.parse(JSON.stringify(this.singleOption));

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                            var obj = {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                if (this.selectedField !== this.fieldName) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                if (this.selectedQuery !== this.queryName) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        /*

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                fields: fields

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        var field_split = singleRow.value.split(',');

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            input.selector.parents('.editable-pack').removeClass('on');

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                var flag = true;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.optionRows.splice(index, 1);

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        public queryFormat: any = {};

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    this.queryName = this.selectedQuery;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            var queryFormat = {};

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    } else {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            }.bind(this));

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        other_fields = other_fields.join(',');

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        this.optionRows.push(obj);

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            if (this.queryName === this.current_query) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            queryFormat[this.queryName] = {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            }.bind(this), 300);

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                this.optionRows.forEach(function(row) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    if(row.name === opt) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.optionRows.push(singleOption);

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    Missing semicolon
    Open

                }.bind(this))

    Rule: semicolon

    Enforces consistent semicolon usage at the end of every statement.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • "always" enforces semicolons at the end of every statement.
    • "never" disallows semicolons at the end of every statement except for when they are necessary.

    The following arguments may be optionally provided:

    • "ignore-interfaces" skips checking semicolons at the end of interface members.
    • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
    • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
    Examples
    "semicolon": true,always
    "semicolon": true,never
    "semicolon": true,always,ignore-interfaces
    "semicolon": true,always,ignore-bound-class-methods
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "always",
            "never"
          ]
        },
        {
          "type": "string",
          "enum": [
            "ignore-interfaces"
          ]
        }
      ],
      "additionalItems": false
    }

    For more information see this page.

    space indentation expected
    Open

        };

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        var obj = {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        addOption() {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        removeOption(index: Number) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                        fields = fields.concat(field_split);

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    var applied = this.appliedQuery[this.current_query];

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                    for (let option in applied) {

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                }.bind(this))

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            this.getFormat();

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    Missing semicolon
    Open

        public optionRows: any = []

    Rule: semicolon

    Enforces consistent semicolon usage at the end of every statement.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • "always" enforces semicolons at the end of every statement.
    • "never" disallows semicolons at the end of every statement except for when they are necessary.

    The following arguments may be optionally provided:

    • "ignore-interfaces" skips checking semicolons at the end of interface members.
    • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
    • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
    Examples
    "semicolon": true,always
    "semicolon": true,never
    "semicolon": true,always,ignore-interfaces
    "semicolon": true,always,ignore-bound-class-methods
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "always",
            "never"
          ]
        },
        {
          "type": "string",
          "enum": [
            "ignore-interfaces"
          ]
        }
      ],
      "additionalItems": false
    }

    For more information see this page.

    space indentation expected
    Open

                        }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

            return queryFormat;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

                return flag;

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    space indentation expected
    Open

        }

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

    Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

    • spaces enforces consistent spaces.
    • tabs enforces consistent tabs.

    A second optional argument specifies indentation size:

    • 2 enforces 2 space indentation.
    • 4 enforces 4 space indentation.

    Indentation size is required for auto-fixing, but not for rule checking.

    NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

    Examples
    "indent": true,spaces
    "indent": true,spaces,4
    "indent": true,tabs,2
    Schema
    {
      "type": "array",
      "items": [
        {
          "type": "string",
          "enum": [
            "tabs",
            "spaces"
          ]
        },
        {
          "type": "number",
          "enum": [
            2,
            4
          ]
        }
      ],
      "minLength": 0,
      "maxLength": 5
    }

    For more information see this page.

    There are no issues that match your filters.

    Category
    Status