typescript-formatter icon indicating copy to clipboard operation
typescript-formatter copied to clipboard

Formatter of TypeScript code

Results 44 typescript-formatter issues
Sort by recently updated
recently updated
newest added
trafficstars

Given ``` export interface Project extends Timestamped { title: string; avatar: string; tags: { [key: string]: boolean }; www: string; } export interface User extends Timestamped { name: string; avatar:...

With tsfmt --init scaffold tsfmt.json.

Having this file (with 4 empty/blank lines): ```ts const x = 'hello'; console.log(x); ``` and `tslint.json`: ```json { "rules": { "no-consecutive-blank-lines": false } } ``` Running `tsfmt -r` replaces the...

It would be great if this package could as well read the Prettier config files: https://prettier.io/docs/en/configuration.html

When `trailing-comma` is set to `false`, ``` export enum CompanyType { Customer = 1, Supplier = 2, FreightAgent = 3, None = -1, } ``` should get converted to ```...

Would be really nice to be able to control indent formatting with these two options. It seems the current options supported are only "typescript.format.etc"

expected: ```javascript const a = { a: 1, b: 2, c: 3, }; ``` actual ```javascript const a = { a: 1, b: 2, c: 3, }; ```

Implements #109 I also had to tweak the test cases to run on Windows. Spawning tslint, for example, is a bit different on Windows since npm generates a .cmd shim...

Settings from .editorconfig are not picked up by tsfmt with --baseDir. Here is file structure I'm using https://gist.github.com/Eoksni/49cbac2c0a6cfd17b1d93b699098ac8a. Here is what I do ```cmd c:\temp\test-tsfmt\outer>tsfmt ..\project\test.ts let q = function...