allegro / allegro/typescript-strict-plugin

Idea: use jest-docblock for parsing comments

Open
#51 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
397
Forks
34
PR merge metrics
PR metrics pending

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.