<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akagoma</author_name>
  <author_url>https://blog.hatena.ne.jp/akagoma/</author_url>
  <blog_title>赤ごまヱンヂニアリング</blog_title>
  <blog_url>https://blog.akagoma.com/</blog_url>
  <categories>
    <anon>React</anon>
    <anon>node.js</anon>
  </categories>
  <description>TL;DR @trivago/prettier-plugin-sort-importsを使った。 github.com package.jsonに@trivago/prettier-plugin-sort-importsを追加 npm install -D @trivago/prettier-plugin-sort-imports prettierの設定をする prettier-plugin-sort-imports import順は react関連のモノ @mui関連のモノ それ以外 自分のプロジェクトの参照 としてみた。 適当に設定してみたけど、ちゃんとソートされるしいい感じ。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.akagoma.com%2Fentry%2F2025%2F03%2F25%2Fimport-order-by-prettier&quot; title=&quot;prettierでimport orderを整形したい - 赤ごまヱンヂニアリング&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-03-25 00:14:01</published>
  <title>prettierでimport orderを整形したい</title>
  <type>rich</type>
  <url>https://blog.akagoma.com/entry/2025/03/25/import-order-by-prettier</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
