Skip to content

Instantly share code, notes, and snippets.

@gcnit
Last active March 13, 2022 06:47
Show Gist options
  • Save gcnit/81e682c62b2abac426062d99a651fb60 to your computer and use it in GitHub Desktop.
Save gcnit/81e682c62b2abac426062d99a651fb60 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