download eslint code example
Example 1: eslint npm install
$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init
Example 2: javascript linting
1.install standard to development mode - npm i standard -D or install standard to global - npm i standard -g
2.install standard extension for vscode
3.add this configuration to vscode json config
"standard.enable": true,
"standard.run": "onSave",
"standard.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"standard.autoFixOnSave": true,
"standard.engine": "standard",
4. enjoy linting is active