タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

TypeScriptとtoolに関するefclのブックマーク (3)

  • tsconfig.json paths やめ方

    tsconfig.jsonのpaths設定でimport文にエイリアスを使えるようにしたものの、 tscでトランスパイルするとエイリアス形式のパスは変換されない パスの変換のためにtsconfig-pathsなどの追加ライブラリが必要で、ビルドコマンドが冗長になる jestなどはpathsを反映するために追加設定が必要 などで微妙な気持ちになってきたことはありませんか。 一度導入すると利用箇所が結構多くなってきて手動で戻すには大変すぎるし、まあ動いてるからいいか...みたいな。 そんな時のために自動で相対パスに戻せるeslintプラグインを作ってみました。 やめ方 @mkizka/eslint-plugin-relative-import を入れてeslint --fixするだけ。 設定は↓のような感じです。 // eslint.config.js import { relativeImp

    tsconfig.json paths やめ方
    efcl
    efcl 2025/04/16
    tsconfig.jsonのpaths設定を戻すためのESLintプラグイン
  • GitHub - ysk8hori/typescript-graph: A CLI to visualize the dependencies between files in the TypeScript codebase.

    flowchart classDef dir fill:#0000,stroke:#999 subgraph src["src"] src/atoms.ts["atoms.ts"] subgraph src/components/atoms["/components/atoms"] src/components/atoms/Button.tsx["Button.tsx"] subgraph src/components/atoms/ConfigMenu["/ConfigMenu"] src/components/atoms/ConfigMenu/index.tsx["index.tsx"] subgraph src/components/atoms/ConfigMenu/MenuStack["/MenuStack"] src/components/atoms/ConfigMenu/Menu

    GitHub - ysk8hori/typescript-graph: A CLI to visualize the dependencies between files in the TypeScript codebase.
    efcl
    efcl 2024/11/26
    TypeScriptのコードの依存関係をMermaidでビジュアライズできるツール
  • GitHub - google/tsec

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    GitHub - google/tsec
    efcl
    efcl 2024/03/03
    `tsc`をラップしてTrusted Type互換なのかを型チェックするツール。 `safevalues`と合わせて使うことで、XSSの問題を見つける
  • 1