- create a project folder and cd into it
git init
npm init -y
- create
.gitignore
file - create
readme.md
file git add .
git commit -m "first commit"
- create a remote repository in github
git remote add origin [address]
git push -u origin master
Probably because I am using nvm
, I had to install babel-eslint locally to make eslint
to work. You don't need to worry about eslint-cli
which is also not working...
npm install eslint --save-dev
npm install babel-eslint --save-dev
Also you need to copy .eslintrc.yml
from JS101 folder and put it in the project root folder.
Files to be included in .gitignore
package-lock.json
node_modules/*
.vscode/*