Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Missing spaces around name interface and type #1606

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issueenhancement: new base rule extensionNew base rule extension required to handle a TS specific caseformattingRelated to whitespace/bracket formatting. We strongly recommend you use a formatter instead.package: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@valentineus

Description

@valentineus

Repository with example.

Instruction

  1. Clone a repository:
git clone https://gitlab.com/valentineus/typescript-eslint-example.git
  1. Install dependencies:
npm install
  1. Run a test:
npm run lint

Code to check:

interfaceITesstInterfase{key:string;}typeTestType=()=>void;constvariable1:TestType=()=>{console.log("Hello, World!");};variable1();

Enabled all ruleseslint and@typescript-eslint/eslint-plugin.

On line 1, missing spaces around interfaceITesstInterfase.
On line 5, missing spaces around sign=.

Are there any rules governing such cases?

packageversion
@typescript-eslint/eslint-plugin2.19.2
@typescript-eslint/parser2.19.2
eslint6.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancement: new base rule extensionNew base rule extension required to handle a TS specific caseformattingRelated to whitespace/bracket formatting. We strongly recommend you use a formatter instead.package: 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


      [8]ページ先頭

      ©2009-2025 Movatter.jp