javascript how - Complete list of default values for JSHint options?

to use (3)

Actually, that page contains the list of default options, and that file mentioned in @netme's answer has no effect on JSHint's behavior. Quoting a JSHint project maintainer:

Actually, that file is just an example--it has no effect on JSHint's behavior. While it might match the current default behavior, there's no guarantee that it will continue to do so.

This is why the "options" documentation segments the options by the categories "enforcing" and "relaxing". Notice how all the "relaxing" options are about suppressing warnings--these are the constraints that JSHint imposes by default.

While this makes sense once you understand it, it is confusing to a lot of people (myself included), and may change in the future.

Where can I get the complete list of JSHint default options. I tried searching online but couldn't find anything.

EDIT: I mean a list of default values for all options, in case it wasn't clear :)

In ECMAScript 6 you will actually be able to write exactly what you have:

function read_file(file, delete_after = false) {
  // Code

This will set delete_after to false if it s not present or undefined. You can use ES6 features like this one today with transpilers such as Babel.

See the MDN article for more information.

javascript coding-style jshint