Skip to content

Missing spaces around name interface and type #1606

@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:

interface ITesstInterfase{
    key: string;
}

type TestType=() => void;

const variable1: TestType = () => {

    console.log("Hello, World!");

};

variable1();

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

On line 1, missing spaces around interface ITesstInterfase.
On line 5, missing spaces around sign =.

Are there any rules governing such cases?

package version
@typescript-eslint/eslint-plugin 2.19.2
@typescript-eslint/parser 2.19.2
eslint 6.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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy