Last active
March 13, 2022 06:47
-
-
Save gcnit/81e682c62b2abac426062d99a651fb60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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