Skip to content

Instantly share code, notes, and snippets.

@numfin
Last active April 22, 2018 11:01
Show Gist options
  • Save numfin/1694a3ca33216ca09dfbe5343ae9bec8 to your computer and use it in GitHub Desktop.
Save numfin/1694a3ca33216ca09dfbe5343ae9bec8 to your computer and use it in GitHub Desktop.
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!
@Godje
Copy link

Godje commented Apr 22, 2018

add comments to parts that aren't Javascript
It is confusing without them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment