Formatting in Javascript must not be pain. You don't have to use any linting configurations files. No .eslintrc, .jshintrc, or .jscsrc files to manage. Beside linting it also warns you about programmer errors early e.g unused variables, unhandled errors and more. Give StandardJs a try!

Installation

npm install standard --save-dev

Editor support

  • vscode-standardjs
  • vscode-standardjs-snippets

Other editors

Using

  • Format your code with standard
  • Fix code with standard -fix

Examples

Simple integration in your build scripts.

  "scripts": {
    "test": "standard && nyc mocha"
  }

References