Created
May 3, 2021 18:03
-
-
Save iampavangandhi/b468ff4ef74c6036cf9938aff16290e4 to your computer and use it in GitHub Desktop.
JS Linting (https://github.com/gcnit/code-template)
This file contains hidden or 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