[ESLint js] Js code checker #eslint #js
Install ESLint globally:
$ npm install -g eslint
Add these options in the user settings:
"eslint.options": {
"eslint.options": {
"configFile": "/Users/gabriele/code/ProductsWebsites/buyvia/vendor/saas-management/products-kernel/.eslintrc.json"
}
},
"eslint.alwaysShowStatus": true
create a file called: eslintrc.json
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "double"]
}
}