Skip to content

Instantly share code, notes, and snippets.

@iampavangandhi
Created May 3, 2021 18:03
Show Gist options
  • Save iampavangandhi/b468ff4ef74c6036cf9938aff16290e4 to your computer and use it in GitHub Desktop.
Save iampavangandhi/b468ff4ef74c6036cf9938aff16290e4 to your computer and use it in GitHub Desktop.
# Add stylelint, eslint and prettier config file
git clone https://github.com/gcnit/code-template.git
# Rename folder to your project name
mv code-template <folder-name>
# Go to folder
cd <folder-name>
# Remove .git folder
rm -rf .git
# Initialize the directory as a npm package
npm init -y
# Install stylelint with standard style guide
npm i -D stylelint stylelint-config-standard
# Install eslint with airbnb style guide
npm i -D eslint eslint-config-airbnb-base eslint-plugin-import
# Install prettier and related packages
npm i -D prettier eslint-config-prettier eslint-plugin-prettier
# Install Following extensions on VSCode
@id:dbaeumer.vscode-eslint
@id:stylelint.vscode-stylelint
@id:esbenp.prettier-vscode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment