Last active
March 12, 2018 11:34
-
-
Save rafaelchagasb/ea167a5268b5691b3c8edad4d435547d to your computer and use it in GitHub Desktop.
Configuração do eslint no vscode
This file contains 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
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