Skip to content

Instantly share code, notes, and snippets.

@rafaelchagasb
Last active March 12, 2018 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelchagasb/ea167a5268b5691b3c8edad4d435547d to your computer and use it in GitHub Desktop.
Save rafaelchagasb/ea167a5268b5691b3c8edad4d435547d to your computer and use it in GitHub Desktop.
Configuração do eslint no vscode
npm init -y
npm i --save-dev eslint eslint-config-airbnb-base eslint-plugin-import
.eslintrc.js
Configure task vscode
{
// See http://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "sh", // for windows "command": "cmd"
"isShellCommand": true,
"args": [ "-c" ], // for windows "args": ["/C"]
"tasks": [
{
"taskName": "eslint",
"suppressTaskName": true,
"args": [
"eslint ." // To use locally installed eslint, ./node_modules/eslint/bin/eslint.js .
],
"problemMatcher": [
"$eslint-stylish"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment