Skip to content

Bug: [semi] export default interface semi error #10144

@yohoj

Description

@yohoj

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Playground Link

https://typescript-eslint.io/play/#ts=5.5.2&fileType=.ts&code=KYDwDg9gTgLgBAE2AMwIYFcA28CWA7GYKNAY2DgBVUA3IvAYQAtgBnFp1PAc2AGUBrfHADeAWABQcOAEEYMVCX4AuOHnQBbAEZEANBKkAJHDEj4YKtVt364AJVYR0UMipYwo%2BLnslwAcqnVgV3dPbwBfIA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUFuWYgtgJbpgDaki00A9tJADRQCG8A7kwJ6oC6j2YAegFhAdh6Bd%2BUDz1oENzQLfRgU%2BVAo-qBvDMCncoDAlQO-KgZb9AfDrh%2BUAHbUAtIgAeAF2hMTeIiQpVakMHwODhgQM9ARtaAsTUBNeUAQt019AF8QMKA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false

Repro Code

export default interface TavernChessChangeSkin {
  Attack: number,
  Hitpoint: number,
  Resource: string,
  Name: string,
}

ESLint Config

module.exports = {
  "rules": {
     "semi": ["error", "always"],     
      "no-extra-semi": "error" ,        
  }
}

tsconfig

{
  "compilerOptions": {
    "strictNullChecks": true
  }
}

Expected Result

is ok

Actual Result

Missing semicolon. 6:2 - 6:3

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexternalThis issue is with another package, not typescript-eslint itselfformattingRelated to whitespace/bracket formatting. We strongly recommend you use a formatter instead.locked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions