uchaindb/UClient

View on GitHub
src/ClientApp/app/components/app/app.component.ts

Summary

Maintainability
B
6 hrs
Test Coverage

Function constructor has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    constructor(private location: Location,
        titleService: Title,
        private router: Router,
        private authService: AuthService,
        private alertService: AlertService,
Severity: Major
Found in src/ClientApp/app/components/app/app.component.ts - About 2 hrs to fix

    Function showDialog has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        showDialog(dialog: AlertDialog) {
            let labels = {
                ok: dialog.okLabel || this.translations.okLabel,
                cancel: dialog.cancelLabel || this.translations.cancelLabel
            };
    Severity: Minor
    Found in src/ClientApp/app/components/app/app.component.ts - About 1 hr to fix

      Function showToast has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          showToast(message: AlertMessage, isSticky: boolean) {
              if (message == null) {
                  for (let id of this.stickyToasties.slice(0)) {
                      this.toastyService.clear(id);
                  }
      Severity: Minor
      Found in src/ClientApp/app/components/app/app.component.ts - About 1 hr to fix

        Function showToast has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

            showToast(message: AlertMessage, isSticky: boolean) {
                if (message == null) {
                    for (let id of this.stickyToasties.slice(0)) {
                        this.toastyService.clear(id);
                    }
        Severity: Minor
        Found in src/ClientApp/app/components/app/app.component.ts - About 55 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

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

                        let backlink = data.backlink;

        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.

        parameters are not aligned
        Open

                private translationService: AppTranslationService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        parameters are not aligned
        Open

                private notificationService: NotificationService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                this.translations.okLabel = gT("app.dialog.OkLabel");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "db.List": gT('app.title.db.List'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "db.Connect": gT('app.title.db.Connect'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "alarm.Detail": gT('app.title.alarm.Detail'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                                this.configurations.siteUrl + "/android-chrome-512x512.png",

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        Missing semicolon
        Open

                        this.analyticService.trackPageview((<any>e[1]).url, (<any>e[0]).url)

        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.

        comment must start with a space
        Open

                            //console.log("set medot", this.medot, _);

        Rule: comment-format

        Enforces formatting rules for single-line comments.

        Rationale

        Helps maintain a consistent, readable style in your codebase.

        Notes
        • Has Fix

        Config

        Four arguments may be optionally provided:

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

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

        One of two options can be provided in this object:

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

        For more information see this page.

        parameters are not aligned
        Open

                titleService: Title,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        parameters are not aligned
        Open

                private authService: AuthService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        parameters are not aligned
        Open

                private alarmService: AlarmService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

        import { Router, ActivatedRoute, NavigationEnd, NavigationStart } from "@angular/router";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

        import { AppTranslationService } from "../../services/app-translation.service";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "me.Settings": gT('app.title.me.Settings'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        Missing semicolon
        Open

                this.translations.sessionEndedContent = gT('app.notification.SessionEndedContent')

        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.

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

                let gT = (key: string) => this.translationService.getTranslation(key);

        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.

        parameters are not aligned
        Open

                private toastyConfig: ToastyConfig,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        parameters are not aligned
        Open

                activatedRoute: ActivatedRoute,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

        import { WeixinService } from "../../services/weixin.service";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        Missing semicolon
        Open

                this.translations.defaultDescription = gT('app.share.DefaultDescription')

        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.

        " should be '
        Open

        import { Title } from "@angular/platform-browser";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "me.Menu": gT('app.title.me.Menu'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "db.Create": gT('app.title.db.Create'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "db.Detail": gT('app.title.db.Detail'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "me.About": gT('app.title.me.About'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "db.Chain": gT('app.title.db.Chain'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        Missing semicolon
        Open

                this.translations.defaultTitle = gT('app.share.DefaultTitle')

        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.

        Type assertion using the '<>' syntax is forbidden. Use the 'as' syntax instead.
        Open

                        this.analyticService.trackPageview((<any>e[1]).url, (<any>e[0]).url)

        Rule: no-angle-bracket-type-assertion

        Requires the use of as Type for type assertions instead of <Type>.

        Rationale

        Both formats of type assertions have the same effect, but only as type assertions work in .tsx files. This rule ensures that you have a consistent type assertion style across your codebase.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Not configurable.

        Examples
        "no-angle-bracket-type-assertion": true

        For more information see this page.

        parameters are not aligned
        Open

                private toastyService: ToastyService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                this.translations.cancelLabel = gT("app.dialog.CancelLabel");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "Discover": gT('app.title.Discover'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        Missing semicolon
        Open

                }

        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.

        parameters are not aligned
        Open

                private navService: NavService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    "db.Cell": gT('app.title.db.Cell'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        Missing semicolon
        Open

                        break

        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.

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

                var data = [];

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

                    for (let id of this.stickyToasties.slice(0)) {

        Rule: prefer-const

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

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

        Notes
        • Has Fix

        Config

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

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

        For more information see this page.

        parameters are not aligned
        Open

                private wxService: WeixinService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                translationService.addLanguages(["zh"]);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "alarm.List": gT('app.title.alarm.List'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        Missing semicolon
        Open

                this.translations.sessionEndedTitle = gT('app.notification.SessionEndedTitle')

        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.

        Type assertion using the '<>' syntax is forbidden. Use the 'as' syntax instead.
        Open

                        this.prevUrl = (<any>e[0]).url;

        Rule: no-angle-bracket-type-assertion

        Requires the use of as Type for type assertions instead of <Type>.

        Rationale

        Both formats of type assertions have the same effect, but only as type assertions work in .tsx files. This rule ensures that you have a consistent type assertion style across your codebase.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Not configurable.

        Examples
        "no-angle-bracket-type-assertion": true

        For more information see this page.

        Type assertion using the '<>' syntax is forbidden. Use the 'as' syntax instead.
        Open

                        this.analyticService.trackPageview((<any>e[1]).url, (<any>e[0]).url)

        Rule: no-angle-bracket-type-assertion

        Requires the use of as Type for type assertions instead of <Type>.

        Rationale

        Both formats of type assertions have the same effect, but only as type assertions work in .tsx files. This rule ensures that you have a consistent type assertion style across your codebase.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Not configurable.

        Examples
        "no-angle-bracket-type-assertion": true

        For more information see this page.

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

                        let data = router.routerState.root.snapshot.firstChild.data;

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

                let toastOptions: ToastOptions = {

        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

        import { NavService } from "../../services/nav.service";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                @Inject("ALERTIFY") private alertify,

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

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

                let labels = {

        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.

        parameters are not aligned
        Open

                private router: Router,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        parameters are not aligned
        Open

                private chainDbService: ChainDbService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        parameters are not aligned
        Open

                @Inject(PLATFORM_ID) private platformId: string,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

        import { MessageSeverity, AlertService, AlertDialog, AlertMessage, DialogType } from "../../services/alert.service";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        Missing semicolon
        Open

                this.translations.sessionExpiredTitle = gT('app.notification.SessionExpiredTitle')

        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.

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

                        let index = this.stickyToasties.indexOf(toast.id, 0);

        Rule: prefer-const

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

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

        Notes
        • Has Fix

        Config

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

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

        For more information see this page.

        Missing semicolon
        Open

                    case MessageSeverity.default: this.toastyService.default(toastOptions); break

        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.

        " should be '
        Open

        import { AnalyticService } from "../../services/analytic.service";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "me.Feedback": gT('app.title.me.Feedback'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        " should be '
        Open

                    "Login": gT('app.title.Login'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        Missing semicolon
        Open

                    case MessageSeverity.error: this.toastyService.error(toastOptions); break

        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.

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

                var data = [];

        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.

        parameters are not aligned
        Open

                private alertService: AlertService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        parameters are not aligned
        Open

                private analyticService: AnalyticService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        parameters are not aligned
        Open

                @Inject("ALERTIFY") private alertify,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

        import { AuthService } from "../../services/auth.service";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        Missing semicolon
        Open

                this.translations.sessionExpiredContent = gT('app.notification.SessionExpiredContent')

        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.

        " should be '
        Open

                    "db.Table": gT('app.title.db.Table'),

        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.

        parameters are not aligned
        Open

                private configurations: ConfigurationService,

        Rule: align

        Enforces vertical alignment.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Consistent alignment for code statements helps keep code readable and clear. Statements misaligned from the standard can be harder to read and understand.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "parameters" checks alignment of function parameters.
        • "arguments" checks alignment of function call arguments.
        • "statements" checks alignment of statements.
        • "members" checks alignment of members of classes, interfaces, type literal, object literals and object destructuring.
        • "elements" checks alignment of elements of array literals, array destructuring and tuple types.
        Examples
        "align": true,parameters,statements
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "arguments",
              "elements",
              "members",
              "parameters",
              "statements"
            ]
          },
          "minLength": 1,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    "me.Keys": gT('app.title.me.Keys'),

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

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

        For more information see this page.

        There are no issues that match your filters.

        Category
        Status