snipt

Ctrl+h for KB shortcuts

Text only

.prettierrc

1
2
3
{
  "singleQuote": true
}
https://snipt.net/embed/446c3f412c947076cfef2dac8e737bd4/
/raw/446c3f412c947076cfef2dac8e737bd4/
446c3f412c947076cfef2dac8e737bd4
text
Text only
4
2019-07-16T10:49:39
True
False
False
Jul 12, 2019 at 12:37 AM
/api/public/snipt/148720/
prettierrc
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>{ </span><span id="L-2"><a name="L-2"></a> &quot;singleQuote&quot;: true </span><span id="L-3"><a name="L-3"></a>} </span></pre></div> </td></tr></table>

Bash

Setup eslint

npm i eslint prettier eslint-config-prettier eslint-plugin-prettier eslint-config-airbnb eslint-plugin-node eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react --save-dev
https://snipt.net/embed/830fcec2096c04eb65d132667ecdca8a/
/raw/830fcec2096c04eb65d132667ecdca8a/
830fcec2096c04eb65d132667ecdca8a
bash
Bash
1
2019-07-16T10:50:13
True
False
False
Jul 12, 2019 at 12:25 AM
/api/public/snipt/148718/
setup-eslint
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>npm i eslint prettier eslint-config-prettier eslint-plugin-prettier eslint-config-airbnb eslint-plugin-node eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react --save-dev </span></pre></div> </td></tr></table>