Skip to content

Instantly share code, notes, and snippets.

View Antardas's full-sized avatar
๐Ÿ–ฅ๏ธ
๐‘ป๐’“๐’š๐’Š๐’๐’ˆ ๐’•๐’ ๐’”๐’‚๐’—๐’† ๐’•๐’Š๐’Ž๐’† โ‰กโ‰ก ๐’Ž๐’๐’๐’†๐’š

Antar Das Antardas

๐Ÿ–ฅ๏ธ
๐‘ป๐’“๐’š๐’Š๐’๐’ˆ ๐’•๐’ ๐’”๐’‚๐’—๐’† ๐’•๐’Š๐’Ž๐’† โ‰กโ‰ก ๐’Ž๐’๐’๐’†๐’š
View GitHub Profile
@Antardas
Antardas / eslint_prettier_airbnb.md
Created January 13, 2023 16:43 — forked from geordyjames/eslint_prettier_airbnb.md
VSCode - ESLint, Prettier & Airbnb Setup for Node.js Projects

VSCode - ESLint, Prettier & Airbnb Setup for Node.js Projects

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-config-airbnb-base eslint-plugin-node eslint-config-node

Setup Eslint Prettier and Husky in Node JS Typescript Project

1. ESLint

  • Step 1 - Install the dependencies

    • eslint
      • ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
      • npm install --save-dev eslint
    • typescript-eslint/parser