2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

typescript-eslint/typescript-estree で未サポートのバージョンの TypeScript を使ったときに表示される警告を消す

Posted at

公式のドキュメントにもあったけど見落としていたのでメモ。

typescript-estree は未サポートの TypeScript を使ってパースをしようとすると警告を吐くけど、出ないでほしいときがたまにある。(See https://github.com/prettier/prettier/pull/8982)

parse のオプションとして loggerFnfalse を渡すとでなくなる。

import { parse } from "@typescript-eslint/typescript-estree";

parse(code, { loggerFn: false });
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?