Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

[no-var][semi] behaviour for interfaces and declare var #266

Closed
@ficristo

Description

@ficristo

Repro
See below.

{
  "rules": {
    "no-var": "error",
    "semi": "error"
  }
}
interface Object {
    foo(): string,
}
declare var Object: {
    new (value?: any): Object,
    foo(): string
}
declare namespace CodeMirror {
    export var Doc : CodeMirror.DocConstructor;
    var version: string;
}

Expected Result
No no-var errors.
semi errors for the three lines inside the curly braces. (I'm not sure if commas are valid, it seems typescript is quite lenient about them). No errors after the curly braces.

Actual Result
no-var errors.
no semi errors but after the last curly brace.

Additional Info

Versions

package version
eslint-plugin-typescript 1.0.0-rc.0
typescript-eslint-parser eslint-plugin-typescript/parser
typescript 3.1.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions