Skip to content

[semi] incorrectly requires semicolon after export default interface #123

Closed
@nstepien

Description

@nstepien

What code were you trying to parse?

export default interface test {}

What did you expect to happen?
semi should ignore the interface block.
What actually happened?
semi wants a semicolon after the block, which then triggers the no-extra-semi rule.

It works fine without default:

export interface test1 {}
interface test2 {}

Versions

package version
@typescript-eslint/parser 1.0.0
TypeScript 3.2.4
ESLint 5.12.1
node 11.7.0
npm 6.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancement: new base rule extensionNew base rule extension required to handle a TS specific casepackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions