allegro / allegro/typescript-strict-plugin
Idea: use jest-docblock for parsing comments
未关闭
- 主要语言
- TypeScript
- 星标
- 397
- 派生
- 34
- PR 合并指标
- PR 指标待抓取
描述
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.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。