JSHint Cheatsheet

MD
R
Markdown

Some basics to configure JSHint

Apply a global configuration (ie. if JShint is running globally via -g)

Just create a jshinrc file, add your rules.

{
  "undef": true,
  "unused": true,
  "esversion": 6,
  "globals": {
    "MY_GLOBAL": true
  }
}

Now reload them via the global JShint binary. jshint -c .jshintrc

Created on 2/15/2019