<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Keisuke69</author_name>
  <author_url>https://blog.hatena.ne.jp/Keisuke69/</author_url>
  <blog_title>Sweet Escape</blog_title>
  <blog_url>https://www.keisuke69.net/</blog_url>
  <categories>
    <anon>JavaScript/TypeScript</anon>
  </categories>
  <description>はじめに コミット前にlint系のチェックをしたいケースってあると思います。特にチーム開発とかの場合、全員がlintをちゃんと実行してほしいとかあるかと。そういったときのためにコミットのタイミングでlint系のコマンドを実行するための仕組みとしてhuskyとlint-stagedを組み合わせたものが定番かと思います。 新しいプロジェクトのリポジトリを作るたびにこの組み合わせのセットアップを行うのですが、毎回ググりながらやるのでいい加減に面倒になので残しておきます。 huskyとlint-stagedそのものについては大雑把に説明すると、huskyがコミット前に何らかの処理を実行するためのツール…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.keisuke69.net%2Fentry%2F2022%2F04%2F18%2F113419&quot; title=&quot;huskyとlint-stagedでコミット前に確実にLintを実行していく - Sweet Escape&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>https://cdn-ak.f.st-hatena.com/images/fotolife/K/Keisuke69/20220418/20220418113334.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-04-18 11:34:19</published>
  <title>huskyとlint-stagedでコミット前に確実にLintを実行していく</title>
  <type>rich</type>
  <url>https://www.keisuke69.net/entry/2022/04/18/113419</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
