How to lint entire folder using tslint

后端 未结 3 1475
隐瞒了意图╮
隐瞒了意图╮ 2020-12-24 00:14

Is that possible to lint entire folder using tslint?

Using eslint it is possible to do eslint ./src to validate whole folder.

When i try to do

3条回答
  •  醉话见心
    2020-12-24 01:06

    There is now a --project option for this. Example:

    tslint --project .
    

    From the docs:

    -p, --project:

    The path or directory containing a tsconfig.json file that will be used to determine which files will be linted. This flag also enables rules that require the type checker.

提交回复
热议问题