allegro / allegro/typescript-strict-plugin

[Feature Request] Add CLI option to check specific files

Đang mở
#26 4 bình luận 6 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
397
Fork
34
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

I'd like to run this as a pre-commit hook and only check staged files so I can
1) Make sure no regressions are checked in
2) Check that new files aren't checked in with the ignore comment.

I think I could achieve 1) myself by creating a temporary tsconfig.json file with the staged files listed as `files` and feed that to the CLI, but it would be much better if the command could directly handle a list of files.

Is that technically possible?

For 2), I would also appreciate exposing a new cli command which takes a list of files and throws an error if any of them are ignored

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.