Last active
April 22, 2018 11:01
-
-
Save numfin/1694a3ca33216ca09dfbe5343ae9bec8 to your computer and use it in GitHub Desktop.
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
install vscode extentions: | |
eslint | |
prettier - code formatter | |
type this in console to install npm dependensies: | |
npm install eslint | |
npm install -g install-peerdeps | |
install-peerdeps --dev eslint-config-airbnb | |
F1 in vscode then type "eslint" and choose "create .eslintrc.json file" | |
find .eslintrc.json file and add key {"extends": "airbnb"} so your eslintrc json file should look like this: | |
{ | |
"parserOptions": blabla, | |
"anotherKeys": blabla, | |
"extends": "airbnb" | |
} | |
then go to vscode user settings and find "editor.formatOnSave" setting and make it true | |
Done you have clean code after you save your file. Good job! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add comments to parts that aren't Javascript
It is confusing without them