<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sahil Nare</title>
    <description>The latest articles on DEV Community by Sahil Nare (@sahilnare).</description>
    <link>https://dev.to/sahilnare</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F386054%2Fa335aa9a-c00f-429c-a08e-2cea42782265.jpg</url>
      <title>DEV Community: Sahil Nare</title>
      <link>https://dev.to/sahilnare</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sahilnare"/>
    <language>en</language>
    <item>
      <title>Insomnia - an Open Source, Developer-Friendly API testing client</title>
      <dc:creator>Sahil Nare</dc:creator>
      <pubDate>Sat, 09 Jul 2022 16:16:49 +0000</pubDate>
      <link>https://dev.to/sahilnare/insomnia-an-open-source-developer-friendly-api-testing-client-58d4</link>
      <guid>https://dev.to/sahilnare/insomnia-an-open-source-developer-friendly-api-testing-client-58d4</guid>
      <description>&lt;p&gt;Hello devs!&lt;/p&gt;

&lt;p&gt;Testing APIs is a huge pain in the ass. If you aren't careful then you can easily get lost in the 'API-jungle' of your back-end application. So, using a tool to document and test the APIs goes a long way to make the development process smoother.&lt;/p&gt;




&lt;h3&gt;
  
  
  Why use Insomnia?
&lt;/h3&gt;

&lt;p&gt;Before you ask 'Why not Postman?', let me say that I have used Postman for a very long time. I recently shifted to Insomnia for testing my APIs and really love the experience so far. This post isn't meant to be a comparison between the two software. Each one has its own pros and cons. You should use the tool which you find to be the best to work with.&lt;/p&gt;




&lt;h3&gt;
  
  
  User friendly Interface
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--y1nF58LX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h27xlsoz9qzfp2isf7lm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--y1nF58LX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h27xlsoz9qzfp2isf7lm.png" alt="Insomnia UI" width="880" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What I love the most about Insomnia is its simple and intuitive UI. You got the Method Tabs on the far left, the request and body part in the middle and the response preview on the right. Although you can't see as many options on the page like Postman, in this case less is more.&lt;/p&gt;




&lt;h3&gt;
  
  
  Crucial features for Development
&lt;/h3&gt;

&lt;p&gt;Some cool features that I like about Insomnia:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Environment variables&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can load custom variables in the environment. This is helpful in cases like when you are creating routes and want to use the same base url. You can also have multiple environments (like for development or production).&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3Z5vEl-N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t1lmuq1dqkg5uy1kc53p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3Z5vEl-N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t1lmuq1dqkg5uy1kc53p.png" alt="Environment variables in Insomnia" width="880" height="584"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Organizing requests&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The requests are neatly organized on the left sidebar.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wBaR4QEI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/113ce6qe86lyh48vmloy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wBaR4QEI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/113ce6qe86lyh48vmloy.png" alt="Organizing requests in Insomnia" width="407" height="538"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Timeline tab&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can check the timeline of the request by clicking on the timeline tab on the right side. This is very useful if you want to track the time of request, headers, what was the response, etc.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qiiLBnhv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8gfaoblkk543oqqklqac.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qiiLBnhv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8gfaoblkk543oqqklqac.png" alt="Timeline tab in Insomnia" width="880" height="816"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use data from other responses&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can also use data from other responses. Insomnia suggests many options for the placeholder.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oWWyNgoe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ynzj0kkuzvfpypcliiuj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oWWyNgoe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ynzj0kkuzvfpypcliiuj.png" alt="Data from Other Responses in Insomnia" width="798" height="584"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;API Design and Sync with Git&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When you are designing your API Document, you can use Sync with Git feature to set up a remote repository and commit changes to it.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rkKCSrL0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1ihpwr6stjrcw5rqdtj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rkKCSrL0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1ihpwr6stjrcw5rqdtj.png" alt="API Design and Sync with Git in Insomnia" width="357" height="290"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Excellent themes and community plugins
&lt;/h3&gt;

&lt;p&gt;Insomnia has a nice collection of themes to choose from. You can also install various community plugins to enhance your experience.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vCyKmFvN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e9q4a8h87ktx7fq23loc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vCyKmFvN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e9q4a8h87ktx7fq23loc.png" alt="Themes in Insomnia" width="837" height="888"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cDwInz4k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eu1i10acc1h4mr6z1xax.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cDwInz4k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eu1i10acc1h4mr6z1xax.png" alt="Community plugins in Insomnia" width="839" height="887"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>api</category>
      <category>tooling</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Kitty - a fast and sleek terminal emulator for Linux</title>
      <dc:creator>Sahil Nare</dc:creator>
      <pubDate>Tue, 05 Jul 2022 08:55:39 +0000</pubDate>
      <link>https://dev.to/sahilnare/kitty-a-fast-and-sleek-terminal-emulator-for-linux-3e7g</link>
      <guid>https://dev.to/sahilnare/kitty-a-fast-and-sleek-terminal-emulator-for-linux-3e7g</guid>
      <description>&lt;p&gt;If you are on a Linux system then there's a good chance that you will use the command line for a really long period. The Terminal (or the command line) is a huge part of the Linux experience (especially for developers). So it's important that your Linux terminal is convenient, customizable and fast.&lt;/p&gt;

&lt;p&gt;The default terminal on various Linux distros are very neat but there are a lot of features that can make them more functional and effective. You can use terminal emulators for this purpose. Emulators basically provide additional functionalities on top of your classic terminal.&lt;/p&gt;

&lt;p&gt;After spending a lot of time searching on the internet for quality terminal emulators, I came across &lt;strong&gt;Kitty&lt;/strong&gt;. And oh boy, is it a hell of a terminal!&lt;/p&gt;




&lt;h2&gt;
  
  
  Why use Kitty?
&lt;/h2&gt;

&lt;p&gt;Kitty (developed by &lt;a href="https://github.com/kovidgoyal"&gt;Kovid Goyal&lt;/a&gt;) has got all the features that I really wanted when I was looking for emulators on the internet so I instantly fell in love with it. Here are some of them:&lt;/p&gt;

&lt;h3&gt;
  
  
  Highly customizable:
&lt;/h3&gt;

&lt;p&gt;Kitty has a configuration file &lt;code&gt;kitty.conf&lt;/code&gt; which you can edit and it's very easy to adjust various parameters like fonts, keyboard shortcuts, scrolling, tab preferences, colors, etc according to your needs. &lt;/p&gt;

&lt;p&gt;It is highly customizable and you can look up all the details about it in the documentation: &lt;a href="https://sw.kovidgoyal.net/kitty/conf/"&gt;https://sw.kovidgoyal.net/kitty/conf/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Tabs:
&lt;/h3&gt;

&lt;p&gt;This is a very basic feature but a very big number of emulators don't support it. Kitty has shortcuts for creating tabs. You can also create a sub-tab which basically splits the terminal in half giving you two tabs one above the other. There are many layout options that you can choose from.&lt;/p&gt;

&lt;h3&gt;
  
  
  It's fast and scriptable
&lt;/h3&gt;

&lt;p&gt;It uses the GPU for fast rendering so the terminal runs very smoothly. It also uses threaded rendering for low latency.&lt;/p&gt;

&lt;p&gt;Kitty has a framework for easily creating terminal programs called &lt;a href="https://sw.kovidgoyal.net/kitty/kittens_intro/"&gt;kittens&lt;/a&gt; which is very handy. You can also control the terminal using scripts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Themes:
&lt;/h3&gt;

&lt;p&gt;You can customize the colors of the terminal easily by creating your own theme and editing it in the &lt;code&gt;kitty.conf&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;If your want to use an existing theme then just run: &lt;code&gt;kitty +kitten themes&lt;/code&gt; in the terminal. This will open an interactive program through which you can select a theme that you like. I personally like the &lt;a href="https://github.com/Roboron3042/Cyberpunk-Neon/tree/master/terminal/kitty"&gt;Cyberpunk-Neon theme&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Website of Kitty emulator: &lt;a href="https://sw.kovidgoyal.net/kitty/"&gt;https://sw.kovidgoyal.net/kitty/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can install Kitty from here: &lt;a href="https://sw.kovidgoyal.net/kitty/quickstart/"&gt;https://sw.kovidgoyal.net/kitty/quickstart/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Github page: &lt;a href="https://github.com/kovidgoyal/kitty"&gt;https://github.com/kovidgoyal/kitty&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>performance</category>
      <category>linux</category>
    </item>
    <item>
      <title>Using ESLint to help find bugs in your JavaScript Projects</title>
      <dc:creator>Sahil Nare</dc:creator>
      <pubDate>Tue, 28 Jun 2022 16:25:24 +0000</pubDate>
      <link>https://dev.to/sahilnare/using-eslint-to-help-find-bugs-in-your-javascript-projects-311o</link>
      <guid>https://dev.to/sahilnare/using-eslint-to-help-find-bugs-in-your-javascript-projects-311o</guid>
      <description>&lt;p&gt;Ever had problems formatting your JS code? Of course you did, a lot of developers do. It is often difficult to keep a consistent style of code throughout an entire project. Well, &lt;strong&gt;ESLint&lt;/strong&gt; is a tool that you can use to make the task of formatting code realy smooth.&lt;/p&gt;

&lt;p&gt;I'm a web developer so JavaScript is the most common language I use. Hence, I'm gonna show you how to use ESLint in your JS project (&lt;strong&gt;ESLint can only be used with JS&lt;/strong&gt;). But if you are using any other language then you should search for its own static analysis tools.&lt;/p&gt;

&lt;p&gt;Before we start, make sure that you have the &lt;code&gt;package.json&lt;/code&gt; file set up. If not then you can run the &lt;code&gt;npm init&lt;/code&gt; command in your project directory.&lt;/p&gt;




&lt;h2&gt;
  
  
  Installing ESLint in your project
&lt;/h2&gt;

&lt;p&gt;You can install ESLint via the &lt;strong&gt;npm package manager&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Just run: &lt;code&gt;npm install --save-dev eslint&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install --save-dev eslint
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;ESLint will be installed as a 'dev dependency'. This will be reflected in your &lt;code&gt;package.json&lt;/code&gt; file.&lt;/p&gt;




&lt;h2&gt;
  
  
  Setting up ESLint
&lt;/h2&gt;

&lt;p&gt;Once you have successfully installed the package, you will have to initialize ESLint in your project.&lt;/p&gt;

&lt;p&gt;For that, you have run the command: &lt;code&gt;npm init @eslint/config&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm init @eslint/config
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The program will then ask you about your &lt;strong&gt;preferences&lt;/strong&gt;, i.e. what options that you want to use or how you want to use the ESLint package. You just have to select the desired option using arrow keys and the program will automatically do the ESLint configuration for you.&lt;/p&gt;

&lt;p&gt;For the first option, I would suggest to select enforcing code style.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tnjozvZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1eehlsne3t6wez6jxp69.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tnjozvZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1eehlsne3t6wez6jxp69.png" alt="Picture of command line with the above command" width="880" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, select the type of module. Select the option depending upon whether you are going to use &lt;code&gt;import/export&lt;/code&gt; or &lt;code&gt;require/exports&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--moWvsFlP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tr8qpszhayagzl0k3hgs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--moWvsFlP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tr8qpszhayagzl0k3hgs.png" alt="Picture of command line with the above command" width="880" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then, select the framework that you are using (if any).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2Hd2-bCu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c8takyfjw0a51wb4h9xw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2Hd2-bCu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c8takyfjw0a51wb4h9xw.png" alt="Picture of command line with the above command" width="880" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select whether you are using Typescript in your project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_yHCztt9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b2kz44tbs0yhxpiqhhd7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_yHCztt9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b2kz44tbs0yhxpiqhhd7.png" alt="Picture of command line with the above command" width="880" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then, select whether you are going to the run the project on the Browser or in NodeJS.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oW_6_rTh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o71v9hdqc9nkiskpkr13.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oW_6_rTh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o71v9hdqc9nkiskpkr13.png" alt="Picture of command line with the above command" width="880" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After that, you can select a &lt;strong&gt;popular style guide&lt;/strong&gt;. Either that or you can answer questions about your own style and ESLint will configure the project accordingly. Here, I'm going to select a popular style guide. (I often use the AirBnB style guide in my projects.)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cWiXi0CV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atpiv6ssu6fch1sobgv1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cWiXi0CV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atpiv6ssu6fch1sobgv1.png" alt="Picture of command line with the above command" width="880" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, ESLint will create a &lt;strong&gt;configuration file&lt;/strong&gt; in the project, in which all the options like rules, environment, etc will be stored. You can manually edit this file according to your preferences.&lt;/p&gt;

&lt;p&gt;First you will have to select the format of the file: JavaScript, YAML or JSON. I prefer the JSON format.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LaboyoBZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9ptc9eysxhs04zqo3ud.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LaboyoBZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9ptc9eysxhs04zqo3ud.png" alt="Picture of command line with the above command" width="880" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After this, the program will ask your permission to install the required dependencies. Select &lt;code&gt;Yes&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bx9aagl6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k4mxs3xjztmk1qnp98vw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bx9aagl6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k4mxs3xjztmk1qnp98vw.png" alt="Picture of command line with the above command" width="880" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select your package manager and the required dependencies will be installed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iY43uP_4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7em5ok42ye9fzmggozu9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iY43uP_4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7em5ok42ye9fzmggozu9.png" alt="Picture of command line with the above command" width="880" height="392"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  ESLint Configuration File
&lt;/h2&gt;

&lt;p&gt;Once ESLint has been initialized, the configuration file will appear your in your project. You can now edit this file and set up the code style that you require.&lt;/p&gt;

&lt;p&gt;If you have selected the JSON format, then the file will be named as: &lt;code&gt;.eslintrc.json&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mEZGeblq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dmpk42pv43ed6nwn7sen.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mEZGeblq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dmpk42pv43ed6nwn7sen.png" alt="Picture of command line with the above command" width="819" height="639"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can set up the rules in the &lt;code&gt;rules&lt;/code&gt; block. All the ESLint rules are available here: &lt;a href="https://eslint.org/docs/latest/rules/"&gt;https://eslint.org/docs/latest/rules/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here's an example of the config file in one of my projects:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4JMc0dYn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ul2cgdf4993z1m9edabc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4JMc0dYn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ul2cgdf4993z1m9edabc.png" alt="Picture of above file" width="880" height="673"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;ESLint rules have three settings: &lt;code&gt;error&lt;/code&gt;, &lt;code&gt;warn&lt;/code&gt; or &lt;code&gt;off&lt;/code&gt;. You can learn more about configuring rules here: &lt;a href="https://eslint.org/docs/latest/user-guide/configuring/rules"&gt;https://eslint.org/docs/latest/user-guide/configuring/rules&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Running ESLint
&lt;/h2&gt;

&lt;p&gt;You can run ESLint on individual files. For eg, if I want to run it on &lt;code&gt;index.js&lt;/code&gt;, I will use the command &lt;code&gt;npx eslint index.js&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;But typically, ESLint is run on the entire project. So what I would suggest is adding this line in the &lt;code&gt;scripts&lt;/code&gt; block of your &lt;code&gt;package.json&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"lint": "eslint ./"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's an example of a package.json file:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TKtEZW-a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0u2hwst6lecf2jcldux9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TKtEZW-a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0u2hwst6lecf2jcldux9.png" alt="Picture of above file" width="678" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then you can run &lt;code&gt;npm run lint&lt;/code&gt; and it will run on your entire project.&lt;/p&gt;

&lt;p&gt;Here's an example output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WdxRYlEm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/06h5475x5i2dhyipvqcg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WdxRYlEm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/06h5475x5i2dhyipvqcg.png" alt="Picture of command line with the above command" width="880" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2o_n3fbV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/emq52c4kjsxv4kc8gn3y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2o_n3fbV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/emq52c4kjsxv4kc8gn3y.png" alt="Picture of command line with the above command" width="880" height="275"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  ESLint Extension for VS Code
&lt;/h2&gt;

&lt;p&gt;If you are using VS Code for your project then ESLint has a very handy extension that you can use. It will highlight the errors in your editor which makes formatting the code way more easier.&lt;/p&gt;

&lt;p&gt;You can install the extension in VS Code by going to the &lt;code&gt;Extensions&lt;/code&gt; tab in the Activity bar and searching for &lt;code&gt;ESLint&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xDnO_7-o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fa1a74i4tdqal240dsdd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xDnO_7-o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fa1a74i4tdqal240dsdd.png" alt="Picture of above file" width="362" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will show an error in the editor itself if your code does not follow the configured format. Here's an example in which the semi-colon is missing from the line and I've added the "semi" rule in &lt;code&gt;.eslintrc.json&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KsRt845A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhvjwi8dys4bznk0wi9x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KsRt845A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhvjwi8dys4bznk0wi9x.png" alt="Picture of above file" width="771" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The errors and warnings will also show up in the VS Code Panel.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Dk2KALCs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f2av6n0yvhqmfei2v1xr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Dk2KALCs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f2av6n0yvhqmfei2v1xr.png" alt="Picture of above file" width="516" height="208"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For more reference, you can read the documentation for ESLint here: &lt;a href="https://eslint.org/docs/latest/"&gt;https://eslint.org/docs/latest/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>tutorial</category>
      <category>productivity</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Mind Jam Hackathon for students interested in Entrepreneurship</title>
      <dc:creator>Sahil Nare</dc:creator>
      <pubDate>Thu, 04 Jun 2020 11:23:46 +0000</pubDate>
      <link>https://dev.to/sahilnare/mind-jam-hackathon-for-students-interested-in-entrepreneurship-4lm5</link>
      <guid>https://dev.to/sahilnare/mind-jam-hackathon-for-students-interested-in-entrepreneurship-4lm5</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzh65karrh6mr4gjj4quj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzh65karrh6mr4gjj4quj.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cómo estás developers? We hope you are doing well in these times.&lt;br&gt;
However, you continue to work and build, don't you? That is the entrepreneurial spirit we are looking forward to seeing in you.&lt;/p&gt;

&lt;p&gt;Being a developer isn't just the technical work, there is much more to it. You need to be able to pitch your product, convince the investors why they must give a damn. The DSC club is aiming to help you elevate your future businesses or startups by organizing an open to all hackathon, Mind Jam. Get your creative ideas out in the open, build and pitch your products. This is an opportunity for your ideas to be implemented in the real world.&lt;/p&gt;

&lt;p&gt;Mind Jam will commence from June 5th and last till June 10th. It is a 5-day online event and the applications have already begun. Just register at mind jam on devfolio and come up with a unique and mind-blown idea by June 5th.&lt;/p&gt;

&lt;p&gt;Making it easy for you, click on the link and register now: &lt;a href="https://mindjam.devfolio.co" rel="noopener noreferrer"&gt;https://mindjam.devfolio.co&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The additional details related to the timeline of the event, and prizes worth hacking for are put up on the link as well.&lt;/p&gt;

&lt;p&gt;Further more, join our channel on telegram:&lt;br&gt;
&lt;a href="https://t.me/mindjam" rel="noopener noreferrer"&gt;https://t.me/mindjam&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hackathon</category>
      <category>webdev</category>
      <category>machinelearning</category>
      <category>blockchain</category>
    </item>
  </channel>
</rss>
