eslint download code example

Example 1: eslint npm install

$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init

Example 2: javascript linting

// alternative linting for javascript developer using standard zero configuration follow this step by step
 
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

Tags:

C Example