1.2.1 • Published 5 years ago

typescript-dependency-lint v1.2.1

Weekly downloads
328
License
MIT
Repository
github
Last release
5 years ago

typescript-dependency-lint on npm

typescript-dependency-lint

Dependency linter for typescript. So far it supports graph analysis

Cli

$ typescript-dependency-lint
Usage: typescript-dependency-lint [options] [command]

Options:
  --version              output the version number
  --config [json]        Config in escaped JSON format. See README for reference
  -h, --help             display help for command

Commands:
  analyze [globPattern]
  help [command]         display help for command
interface Config {
  ignore: string[] // glob pattern array
  tsconfigPath: string
}

Example

$ ts-node src/index.ts \
  --config "{\"tsconfigPath\": \"./tsconfig.json\",\"ignore\": [\"**/*.spec.ts\"]}" \
  analyze \
  "src/**/*.@(ts|vue)"

TODO

  1. Add lint command