noomorph/github-user-rank-extension

View on GitHub
src/external/browser.ts

Summary

Maintainability
D
2 days
Test Coverage

File browser.ts has 734 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Type definitions for WebExtensions
// Project: https://developer.mozilla.org/en-US/Add-ons/WebExtensions
// Definitions by: Yaroslav Serhieiev <https://github.com/noomorph>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

Severity: Major
Found in src/external/browser.ts - About 1 day to fix

    TODO found
    Open

        // TODO: @noomorph
    Severity: Minor
    Found in src/external/browser.ts by fixme

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

        export function get(windowId: number, getInfo: GetInfo, callback: (window: browser.windows.Window) => void): void;
    Severity: Minor
    Found in src/external/browser.ts and 1 other location - About 50 mins to fix
    src/external/browser.ts on lines 2069..2069

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

        export function update(windowId: number, updateInfo: UpdateInfo, callback?: (window: browser.windows.Window) => void): void;
    Severity: Minor
    Found in src/external/browser.ts and 1 other location - About 50 mins to fix
    src/external/browser.ts on lines 2037..2037

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

        export function getCurrent(getInfo: GetInfo, callback: (window: browser.windows.Window) => void): void;
    Severity: Major
    Found in src/external/browser.ts and 3 other locations - About 35 mins to fix
    src/external/browser.ts on lines 1719..1719
    src/external/browser.ts on lines 2058..2058
    src/external/browser.ts on lines 2080..2080

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 47.

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

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

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

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

    Refactorings

    Further Reading

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

        export function getLastFocused(getInfo: GetInfo, callback: (window: browser.windows.Window) => void): void;
    Severity: Major
    Found in src/external/browser.ts and 3 other locations - About 35 mins to fix
    src/external/browser.ts on lines 1719..1719
    src/external/browser.ts on lines 2046..2046
    src/external/browser.ts on lines 2058..2058

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 47.

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

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

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

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

    Refactorings

    Further Reading

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

        export function highlight(highlightInfo: HighlightInfo, callback: (window: browser.windows.Window) => void): void;
    Severity: Major
    Found in src/external/browser.ts and 3 other locations - About 35 mins to fix
    src/external/browser.ts on lines 2046..2046
    src/external/browser.ts on lines 2058..2058
    src/external/browser.ts on lines 2080..2080

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 47.

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

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

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

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

    Refactorings

    Further Reading

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

        export function create(createData: CreateData, callback?: (window?: browser.windows.Window) => void): void;
    Severity: Major
    Found in src/external/browser.ts and 3 other locations - About 35 mins to fix
    src/external/browser.ts on lines 1719..1719
    src/external/browser.ts on lines 2046..2046
    src/external/browser.ts on lines 2080..2080

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 47.

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

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

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

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

    Refactorings

    Further Reading

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        var fail: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

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

        var onUninstalled: ManagementUninstalledEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onRestartRequired: RuntimeRestartRequiredEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var succeed: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var WINDOW_ID_NONE: number;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    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.

    'namespace' and 'module' are disallowed
    Open

    declare namespace browser.tabs {
        /**
         * Tab muted state and the reason for the last state change.
         * @since Chrome 46. Warning: this is the current Beta channel.
         */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-namespace

    Disallows use of internal modules and namespaces.

    This rule still allows the use of declare module ... {}

    Rationale

    ES6-style external modules are the standard way to modularize code. Using module {} and namespace {} are outdated ways to organize TypeScript code.

    Notes
    • TypeScript Only

    Config

    One argument may be optionally provided:

    • allow-declarations allows declare namespace ... {} to describe external APIs.
    Examples
    "no-namespace": true
    "no-namespace": true,allow-declarations
    Schema
    {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "allow-declarations"
        ]
      },
      "minLength": 0,
      "maxLength": 1
    }

    For more information see this page.

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

        var lastError: LastError;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var RunAt: {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onConnectExternal: ExtensionConnectEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onStartup: RuntimeEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onFocusChanged: WindowIdEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    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.

    These overloads can be combined into one signature taking number | number[].
    Open

        export function remove(tabIds: number[], callback?: Function): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: unified-signatures

    Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter.

    Notes
    • TypeScript Only

    Config

    Not configurable.

    Examples
    "unified-signatures": true

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        var log: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

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

        var inIncognitoContext: boolean;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var RequestUpdateCheckStatus: {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onRemoved: TabRemovedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    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.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

            addListener: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

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

        var onActiveChanged: TabSelectedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var assertFalse: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    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.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        export function remove(tabIds: number[], callback?: Function): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    'namespace' and 'module' are disallowed
    Open

    declare namespace browser.runtime {
        /** This will be defined during an API method callback if there was an error */
        var lastError: LastError;
        /** The ID of the extension/app. */
        var id: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-namespace

    Disallows use of internal modules and namespaces.

    This rule still allows the use of declare module ... {}

    Rationale

    ES6-style external modules are the standard way to modularize code. Using module {} and namespace {} are outdated ways to organize TypeScript code.

    Notes
    • TypeScript Only

    Config

    One argument may be optionally provided:

    • allow-declarations allows declare namespace ... {} to describe external APIs.
    Examples
    "no-namespace": true
    "no-namespace": true,allow-declarations
    Schema
    {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "allow-declarations"
        ]
      },
      "minLength": 0,
      "maxLength": 1
    }

    For more information see this page.

    'namespace' and 'module' are disallowed
    Open

    declare namespace browser.windows {
        interface Window {
            /** Array of tabs.Tab objects representing the current tabs in the window. */
            tabs?: browser.tabs.Tab[];
            /** Optional. The offset of the window from the top edge of the screen in pixels. Under some circumstances a Window may not be assigned top property, for example when querying closed windows from the sessions API. */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-namespace

    Disallows use of internal modules and namespaces.

    This rule still allows the use of declare module ... {}

    Rationale

    ES6-style external modules are the standard way to modularize code. Using module {} and namespace {} are outdated ways to organize TypeScript code.

    Notes
    • TypeScript Only

    Config

    One argument may be optionally provided:

    • allow-declarations allows declare namespace ... {} to describe external APIs.
    Examples
    "no-namespace": true
    "no-namespace": true,allow-declarations
    Schema
    {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "allow-declarations"
        ]
      },
      "minLength": 0,
      "maxLength": 1
    }

    For more information see this page.

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

        var onCommand: CommandEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onInstalled: ManagementInstalledEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onEnabled: ManagementEnabledEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onHighlighted: TabHighlightedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var WINDOW_ID_CURRENT: number;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onRemoved: WindowIdEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    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.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        var notifyFail: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        export function remove(windowId: number, callback?: Function): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

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

        var onSuspend: RuntimeEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onAttached: TabAttachedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var notifyFail: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onMessage: {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

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

            postMessage: (message: Object) => void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

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

        var onUpdateAvailable: RuntimeUpdateAvailableEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var assertTrue: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

    space indentation expected
    Open

            hostSuffix?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            pathPrefix?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the query segment of the URL is equal to a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

        interface Event<T extends Function> {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            hasListeners(): boolean;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

        interface Rule {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            urlEquals?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            getRules(ruleIdentifiers: string[], callback: (rules: Rule[]) => void): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            addRules(rules: Rule[], callback?: (rules: Rule[]) => void): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

        }
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the host name of the URL contains a specified string. To test whether a host name component has a prefix 'foo', use hostContains: '.foo'. This matches 'www.foobar.com' and 'foo.com', because an implicit dot is added at the beginning of the host name. Similarly, hostContains can be used to match against component suffix ('foo.') and to exactly match against components ('.foo.'). Suffix- and exact-matching for the last components need to be done separately using hostSuffix, because no implicit dot is added at the end of the host name.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            queryEquals?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            getRules(callback: (rules: Rule[]) => void): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            hasListener(callback: T): boolean;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        var assertEq: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    'namespace' and 'module' are disallowed
    Open

    declare namespace browser.extensionTypes {
        var ImageFormat: {
            JPEG: string;
            PNG: string;
        };
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-namespace

    Disallows use of internal modules and namespaces.

    This rule still allows the use of declare module ... {}

    Rationale

    ES6-style external modules are the standard way to modularize code. Using module {} and namespace {} are outdated ways to organize TypeScript code.

    Notes
    • TypeScript Only

    Config

    One argument may be optionally provided:

    • allow-declarations allows declare namespace ... {} to describe external APIs.
    Examples
    "no-namespace": true
    "no-namespace": true,allow-declarations
    Schema
    {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "allow-declarations"
        ]
      },
      "minLength": 0,
      "maxLength": 1
    }

    For more information see this page.

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

        var onDisabled: ManagementDisabledEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var lastError: LastError;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var OnRestartRequiredReason: {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onUpdated: TabUpdatedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the path segment of the URL contains a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            pathSuffix?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the query segment of the URL starts with a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Optional priority of this rule. Defaults to 100.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            schemes?: string[];
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            hostPrefix?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the path segment of the URL is equal to a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            urlSuffix?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the URL (without fragment identifier) contains a specified string. Port numbers are stripped from the URL if they match the default port number.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the URL (without fragment identifier) starts with a specified string. Port numbers are stripped from the URL if they match the default port number.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the URL (without fragment identifier) is equal to a specified string. Port numbers are stripped from the URL if they match the default port number.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            priority?: number;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            conditions: any[];
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        var sendMessage: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        var succeed: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

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

        var id: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onSuspendCanceled: RuntimeEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onMessageExternal: ExtensionMessageEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var sendMessage: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the scheme of the URL is equal to any of the schemes specified in the array.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            urlPrefix?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the query segment of the URL contains a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the path segment of the URL starts with a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the path segment of the URL ends with a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Optional identifier that allows referencing this rule.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            id?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

        }
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    'namespace' and 'module' are disallowed
    Open

    declare namespace browser.test {
        var notifyFail: Function;
        var notifyPass: Function;
        var log: Function;
        var sendMessage: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-namespace

    Disallows use of internal modules and namespaces.

    This rule still allows the use of declare module ... {}

    Rationale

    ES6-style external modules are the standard way to modularize code. Using module {} and namespace {} are outdated ways to organize TypeScript code.

    Notes
    • TypeScript Only

    Config

    One argument may be optionally provided:

    • allow-declarations allows declare namespace ... {} to describe external APIs.
    Examples
    "no-namespace": true
    "no-namespace": true,allow-declarations
    Schema
    {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "allow-declarations"
        ]
      },
      "minLength": 0,
      "maxLength": 1
    }

    For more information see this page.

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

        var OnInstalledReason: {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onConnect: ExtensionConnectEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var fail: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onCreated: WindowReferenceEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            pathContains?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the query segment of the URL ends with a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            queryContains?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            removeRules(callback?: () => void): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        interface Event<T extends Function> {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

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

        export function sendNativeMessage(application: string, message: Object, responseCallback?: (response: any) => void): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

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

        var notifyPass: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var assertEq: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

    space indentation expected
    Open

            hostContains?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            urlContains?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            queryPrefix?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

        /** An object which allows the addition and removal of listeners for a Chrome event. */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            actions: any[];
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    Missing semicolon
    Open

        }
    Severity: Minor
    Found in src/external/browser.ts by tslint

    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.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        export function remove(tabId: number, callback?: Function): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

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

        var PlatformArch: {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onInstalled: RuntimeInstalledEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onDetached: TabDetachedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onActivated: TabActivatedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onZoomChange: TabZoomChangeEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var log: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the host name of the URL is equal to a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the port of the URL is contained in any of the specified port lists. For example [80, 443, [1000, 1200]] matches all requests on port 80, 443 and in the range 1000-1200.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            tags?: string[];
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        var notifyPass: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        var assertFalse: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

            removeListener: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

            hasListener: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    asterisks in jsdoc must be aligned
    Open

          * @since Chrome 16.
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: jsdoc-format

    Enforces basic format rules for JSDoc comments.

    The following rules are enforced for JSDoc comments (comments starting with /**):

    • each line contains an asterisk and asterisks must be aligned
    • each asterisk must be followed by either a space or a newline (except for the first and the last)
    • the only characters before the asterisk on each line must be whitespace characters
    • one line comments must start with /** and end with */
    • multiline comments don't allow text after /** in the first line (with option "check-multiline-start")
    Rationale

    Helps maintain a consistent, readable style for JSDoc comments.

    Config

    You can optionally specify the option "check-multiline-start" to enforce the first line of a multiline JSDoc comment to be empty.

    Examples
    "jsdoc-format": true
    "jsdoc-format": true,check-multiline-start
    Schema
    {
      "type": "array",
      "minItems": 0,
      "maxItems": 1,
      "items": {
        "type": "string",
        "enum": [
          "check-multiline-start"
        ]
      }
    }

    For more information see this page.

    'namespace' and 'module' are disallowed
    Open

    declare namespace browser.events {
        /** Filters URLs for various criteria. See event filtering. All criteria are case sensitive. */
        interface UrlFilter {
            /** Optional. Matches if the scheme of the URL is equal to any of the schemes specified in the array.  */
            schemes?: string[];
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-namespace

    Disallows use of internal modules and namespaces.

    This rule still allows the use of declare module ... {}

    Rationale

    ES6-style external modules are the standard way to modularize code. Using module {} and namespace {} are outdated ways to organize TypeScript code.

    Notes
    • TypeScript Only

    Config

    One argument may be optionally provided:

    • allow-declarations allows declare namespace ... {} to describe external APIs.
    Examples
    "no-namespace": true
    "no-namespace": true,allow-declarations
    Schema
    {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "allow-declarations"
        ]
      },
      "minLength": 0,
      "maxLength": 1
    }

    For more information see this page.

    'namespace' and 'module' are disallowed
    Open

    declare namespace browser.i18n {
        /**
         * Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use i18n.getUILanguage.
         * @param callback The callback parameter should be a function that looks like this:
         * function(array of string languages) {...};
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-namespace

    Disallows use of internal modules and namespaces.

    This rule still allows the use of declare module ... {}

    Rationale

    ES6-style external modules are the standard way to modularize code. Using module {} and namespace {} are outdated ways to organize TypeScript code.

    Notes
    • TypeScript Only

    Config

    One argument may be optionally provided:

    • allow-declarations allows declare namespace ... {} to describe external APIs.
    Examples
    "no-namespace": true
    "no-namespace": true,allow-declarations
    Schema
    {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "allow-declarations"
        ]
      },
      "minLength": 0,
      "maxLength": 1
    }

    For more information see this page.

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

        var onRequest: OnRequestEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onRequestExternal: OnRequestEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onCreated: TabCreatedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

    space indentation expected
    Open

        interface UrlFilter {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            urlMatches?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the host name of the URL starts with a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            hostEquals?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            removeRules(ruleIdentifiers?: string[], callback?: () => void): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

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

        interface PortMessageEvent extends browser.events.Event<(message: Object, port: Port) => void> {}
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        export function insertCSS(tabId: number, details: InjectDetails, callback?: Function): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

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

        var ImageFormat: {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var PlatformOs: {
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onHighlightChanged: TabHighlightedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    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.

    This overload and the one on line 1639 can be combined into one signature taking number | CaptureVisibleTabOptions.
    Open

        export function captureVisibleTab(options: CaptureVisibleTabOptions, callback: (dataUrl: string) => void): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: unified-signatures

    Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter.

    Notes
    • TypeScript Only

    Config

    Not configurable.

    Examples
    "unified-signatures": true

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the host name of the URL ends with a specified string.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            pathEquals?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** Optional. Matches if the URL (without fragment identifier) ends with a specified string. Port numbers are stripped from the URL if they match the default port number.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            originAndPathMatches?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

        /** Description of a declarative rule for handling events. */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** List of conditions that can trigger the actions. */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        export function insertCSS(details: InjectDetails, callback?: Function): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
    Open

        var assertTrue: Function;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: ban-types

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

    Notes
    • TypeScript Only

    Config

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

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

    For more information see this page.

    'namespace' and 'module' are disallowed
    Open

    declare namespace browser.commands {
        interface Command {
            /** Optional. The name of the Extension Command  */
            name?: string;
            /** Optional. The Extension Command description  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-namespace

    Disallows use of internal modules and namespaces.

    This rule still allows the use of declare module ... {}

    Rationale

    ES6-style external modules are the standard way to modularize code. Using module {} and namespace {} are outdated ways to organize TypeScript code.

    Notes
    • TypeScript Only

    Config

    One argument may be optionally provided:

    • allow-declarations allows declare namespace ... {} to describe external APIs.
    Examples
    "no-namespace": true
    "no-namespace": true,allow-declarations
    Schema
    {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "allow-declarations"
        ]
      },
      "minLength": 0,
      "maxLength": 1
    }

    For more information see this page.

    'namespace' and 'module' are disallowed
    Open

    declare namespace browser.management {
        /** Information about an installed extension, app, or theme. */
        interface ExtensionInfo {
            /**
             * Optional.
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-namespace

    Disallows use of internal modules and namespaces.

    This rule still allows the use of declare module ... {}

    Rationale

    ES6-style external modules are the standard way to modularize code. Using module {} and namespace {} are outdated ways to organize TypeScript code.

    Notes
    • TypeScript Only

    Config

    One argument may be optionally provided:

    • allow-declarations allows declare namespace ... {} to describe external APIs.
    Examples
    "no-namespace": true
    "no-namespace": true,allow-declarations
    Schema
    {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "allow-declarations"
        ]
      },
      "minLength": 0,
      "maxLength": 1
    }

    For more information see this page.

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

        var onMessage: ExtensionMessageEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onBrowserUpdateAvailable: RuntimeEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onMoved: TabMovedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onReplaced: TabReplacedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

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

        var onSelectionChanged: TabSelectedEvent;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-var-keyword

    Disallows usage of the var keyword.

    Use let or const instead.

    Rationale

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

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

    Notes
    • Has Fix

    Config

    Not configurable.

    Examples
    "no-var-keyword": true

    For more information see this page.

    space indentation expected
    Open

        /** Filters URLs for various criteria. See event filtering. All criteria are case sensitive. */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            querySuffix?: string;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

        }
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            addListener(callback: T): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /**
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            /** List of actions that are triggered if one of the condtions is fulfilled. */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    'namespace' and 'module' are disallowed
    Open

    declare namespace browser.extension {
        interface FetchProperties {
            /** Optional. The window to restrict the search to. If omitted, returns all views.  */
            windowId?: number;
            /** Optional. The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'notification', 'popup'.  */
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: no-namespace

    Disallows use of internal modules and namespaces.

    This rule still allows the use of declare module ... {}

    Rationale

    ES6-style external modules are the standard way to modularize code. Using module {} and namespace {} are outdated ways to organize TypeScript code.

    Notes
    • TypeScript Only

    Config

    One argument may be optionally provided:

    • allow-declarations allows declare namespace ... {} to describe external APIs.
    Examples
    "no-namespace": true
    "no-namespace": true,allow-declarations
    Schema
    {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "allow-declarations"
        ]
      },
      "minLength": 0,
      "maxLength": 1
    }

    For more information see this page.

    space indentation expected
    Open

            ports?: any[];
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    space indentation expected
    Open

            removeListener(callback: T): void;
    Severity: Minor
    Found in src/external/browser.ts by tslint

    Rule: indent

    Enforces indentation with tabs or spaces.

    Rationale

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

    Notes
    • Has Fix

    Config

    One of the following arguments must be provided:

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

    A second optional argument specifies indentation size:

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

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

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

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

    For more information see this page.

    There are no issues that match your filters.

    Category
    Status