cd coding-directory
npm init -y
npm install --save-dev --save-exact eslint eslint-config-airbnb-base eslint-plugin-import
- Create
.eslintrc
file with following content:
{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true
}
}
- Install
ESLint
plugin in Visual Studio Code - Restart Visual Studio Code
nice, thanks