<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakimura</author_name>
  <author_url>https://blog.hatena.ne.jp/nakimura/</author_url>
  <blog_title>なっく日報</blog_title>
  <blog_url>https://yukidarake.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>ESLint v1.9で追加されたno-case-declarationsルールで、へ～と思ったことがあったのでメモ。 no-case-declarationsルールとは？ no-case-declarations - Rules - ESLint - Pluggable JavaScript linter にドキュメントがありますが、 ↓のコードだと、switchブロック内でxとかyが見えてしまうので、警告してくれると。 switch (foo) { case 1: let x = 1; break; case 2: const y = 2; break; case 3: function …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyukidarake.hateblo.jp%2Fentry%2F2015%2F11%2F09%2F203700&quot; title=&quot;JSのswitch文のcaseにブロックスコープを付ける - なっく日報&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>2015-11-09 20:37:00</published>
  <title>JSのswitch文のcaseにブロックスコープを付ける</title>
  <type>rich</type>
  <url>https://yukidarake.hateblo.jp/entry/2015/11/09/203700</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
