allegro / allegro/typescript-strict-plugin

Idea: use jest-docblock for parsing comments

オープン
#51 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。