<?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: ax</title>
    <description>The latest articles on DEV Community by ax (@ananyadhananjaya).</description>
    <link>https://dev.to/ananyadhananjaya</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%2F706588%2Fd6908a58-3142-4f01-a10e-15e7e2e5eb5e.jpg</url>
      <title>DEV Community: ax</title>
      <link>https://dev.to/ananyadhananjaya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ananyadhananjaya"/>
    <language>en</language>
    <item>
      <title>Create a react-ts template powered by Vite</title>
      <dc:creator>ax</dc:creator>
      <pubDate>Tue, 26 Jul 2022 12:19:24 +0000</pubDate>
      <link>https://dev.to/ananyadhananjaya/create-a-react-ts-template-powered-by-vite-54mh</link>
      <guid>https://dev.to/ananyadhananjaya/create-a-react-ts-template-powered-by-vite-54mh</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Steps:&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Create a project with Vite.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With PNPM:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pnpm create react-ts-vite-template --template react-ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With NPM:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm create react-ts-vite-template --template react-ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Change directory to your project, initialize git with:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install packages using:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pnpm install

#or

npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Run the application by using:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pnpm start dev

#or

npm start dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Once you clean up the initial setup, commit and push to a Repository. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Go to the Repository in Github -&amp;gt; Settings -&amp;gt; Check the box for Template Repository&lt;br&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%2Fuploads%2Farticles%2Fdggqn4rfzftglpq21crj.png" 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%2Fuploads%2Farticles%2Fdggqn4rfzftglpq21crj.png" alt="Settings -&amp;gt; Template Repo"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;That's it!&lt;br&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%2Fuploads%2Farticles%2F3fi8nd6mdfm2re6q4tuz.png" 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%2Fuploads%2Farticles%2F3fi8nd6mdfm2re6q4tuz.png" alt="Final"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can use this template to generate new Repositories with the same configs and folder struture.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Quick start with ESLint</title>
      <dc:creator>ax</dc:creator>
      <pubDate>Tue, 26 Jul 2022 06:26:49 +0000</pubDate>
      <link>https://dev.to/ananyadhananjaya/quick-start-with-eslint-4pl0</link>
      <guid>https://dev.to/ananyadhananjaya/quick-start-with-eslint-4pl0</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is ESLint?&lt;/strong&gt;&lt;br&gt;
ESLint is a popular EcmaScript Linting tool, used to find and fix problems in your &lt;strong&gt;Javascript&lt;/strong&gt; code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What can ESLint find and fix?&lt;/strong&gt;&lt;br&gt;
Missing semicolon, unused variables declared, no return type for functions, no default while writing switch cases, improper indentation i.e. stylistic errors etc. These can result in bugs or bad coding style. Some of these can be automatically fixed or a warning is thrown to the developer when we use ESLint.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How does ESLint work?&lt;/strong&gt;&lt;br&gt;
ESLint uses &lt;a href="https://github.com/eslint/espree" rel="noopener noreferrer"&gt;Espree&lt;/a&gt; for Javascript parsing. It uses an AST to evaluate patterns in code. It does all this before runtime.. meaning, without running your Javascript code it will find the bugs, syntax and stylistic errors. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pre-requisites:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://nodejs.org/en/" rel="noopener noreferrer"&gt;NodeJs&lt;/a&gt; (^12.22.0, ^14.17.0, or &amp;gt;=16.0.0)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install:&lt;/strong&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

#or

pnpm create @eslint/config 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&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%2Fuploads%2Farticles%2F5dlofeq3ytoml3ogkri6.png" 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%2Fuploads%2Farticles%2F5dlofeq3ytoml3ogkri6.png" alt="Prompted Questions.."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;answer the prompted questions.. and you are done!!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
