VirtualLiveLab / js-config

A config library for js projects in Virtual Live Lab
5 stars 0 forks source link

typescript-eslintの`useProjectService`を有効化する #108

Closed sushi-chaaaan closed 2 months ago

sushi-chaaaan commented 3 months ago

typescript-eslintにはuseProjectServiceというオプションが実験的に用意されている。

これを使うと、TypeScriptのCompilerAPIを毎回呼び出さず、別プロセスとして立ち上がったtsserverを用いて型情報つきLintingを行うので、大幅なパフォーマンス改善が見込まれる。また、tsconfigも自動的に検出できるようになる。

sushi-chaaaan commented 2 months ago

補足

because it's so new and untested, we're keeping it under the EXPERIMENTAL_ prefix for at least all of the 6.X versions.

とあるため、typescript-eslintがv7に上がるときにprefixを削除する必要がある

sushi-chaaaan commented 2 months ago

補足

because it's so new and untested, we're keeping it under the EXPERIMENTAL_ prefix for at least all of the 6.X versions.

とあるため、typescript-eslintがv7に上がるときにprefixを削除する必要がある

コードにコメント済み