allegro / allegro/typescript-strict-plugin

Idea: use jest-docblock for parsing comments

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

Mô tả

Hi, I am trying to migrate to Typescript + strict mode on a legacy codebase and very interested in this project

This idea is pretty similar in concept to Prettier's `--require-pragma` (https://prettier.io/docs/en/options.html#require-pragma)

Prettier is using `jest-docblock` internally to parse its pragma and supports multiple comment types

`// @format` or
`/** @format */ ` or even
```
/**
* @format
* @some-other-pragmas
*/
```
would be great if we can put the `@ts-strict` or `@ts-strict-ignore` in the docblock as well, so all so-called pragmas are grouped in 1 docblock at the top of a file.

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.