ESLint is a linter for ECMAScript.
A basic configuration file, .eslintrc, that should be placed in the root of a project folder (this can be setup globally, but that could result in inacurrate linting when working with multiple versions of ES). The example configuration is for ES6.
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6
},
"env": {
"node": true,
"browser": true,
"es6": true
}
}