Skip to content

Errors out with valid --baseDir option #84

@rajinder-yadav

Description

@rajinder-yadav

npm script, using: "format": "tsfmt -r --baseDir ./configs",

I get this usage error

tscli: dev$ npm run format

> tscli@0.1.2-alpha.3 format /home/yadav/dev/projects/tscli
> tsfmt -r --baseDir ./configs

  Usage: tsfmt [options] [--] [files...]

  Options:

    -r, --replace         replace .ts file
    --verify              checking file format
    --baseDir <path>      config file lookup from <path>
    --stdin               get formatting content from stdin
    --no-tsconfig         don't read a tsconfig.json
    --no-tslint           don't read a tslint.json
    --no-editorconfig     don't read a .editorconfig
    --no-vscode           don't read a .vscode/settings.json
    --no-tsfmt            don't read a tsfmt.json
    --useTsconfig <path>  using specified config file insteaf of tsconfig.json
    --useTslint <path>    using specified config file insteaf of tslint.json
    --useTsfmt <path>     using specified config file insteaf of tsfmt.json
    --verbose             makes output more verbose

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions