Microsoft/TypeScript

Add rule typescript.format.insertSpaceAfterOpeningAndBeforeClosingNamedImport

Open

#9.224 aberto em 17 de jun. de 2016

Ver no GitHub
 (3 comments) (1 reaction) (0 assignees)TypeScript (6.726 forks)batch import
Domain: FormatterHelp WantedSuggestion

Métricas do repositório

Stars
 (48.455 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)

Description

From @unional on June 16, 2016 22:12

  • VSCode Version: 1.2.1
  • OS Version: Windows 2012 R2

Currently object literal will have space added, but not named import:

// before format code
import {Container} from './Container';

let x = {Container};

// after format code
import {Container} from './Container';

let x = { Container };

Copied from original issue: Microsoft/vscode#7795

Guia do colaborador