Skip to content

Deprecated checks and options

antonkovalyov edited this page Jun 23, 2012 · 2 revisions

This is a list of deprecated checks and options. We will be removing some options while moving others into an opt-in mode.

This list is not set in stone so if you disagree with it—let us know.

Going away

  • smarttabs: smart tabs will be recognized and allowed by default.
  • trailing (partially): trailing whitespace after a backslash in a multi-line string is already an error in Esprima this case is already covered.
  • nomen: this can be easily implemented as an extension to JSHint so we'll remove it from the main tree.
  • white: this option (along with nomen and many others) will be re-introduced as an extension that enforces Crockford's style guide.
  • multistr: multi-line strings will be allowed by default.

Opt-in instead of opt-out

  • globalstrict: by default we will allow global use of "strict mode" directive. However, option browser will disallow it.
  • es5 and esnext: by default JSHint will allow ES5 and ES6 syntax. There will be an option to restrict yourself to ES... 3?

Undecided

  • scripturl
  • supernew
  • forin (we definitely need to check for hasOwnProperty check but it has to be better)
  • validthis (we need to rethink how this works; it is helpful but PITA)
Clone this wiki locally