Like this passage:
JSHint will not be an error if you have these options in your configuration or your files, it will simply ignore them.
So you can still use, but if you set the parameter to true .
jshint 2.5.0
The following parameters have been deleted: nomen, onevar, passfail, white, gcl, smarttabs, trailing. In addition to this, indentation no longer provides warning about indentation levels. You can still use it to set the tab width, but it will only be used to position characters in other warnings. JSHint will not be an error if you have these parameters in your config or your files; he simply ignores them.
Jshint 2.5.0: https://github.com/jshint/jshint/releases/tag/2.5.0
Jshint 2.5.1: https://github.com/jshint/jshint/releases/tag/2.5.1
Alternative solution:
An alternative solution is to use notepad ++ , whenever you finish editing the code, you can use the following:
Edit > Blank Operations > Trim Trailing Space
The result looks something like this:
[SPACE]if (something) {[SPACE] to [SPACE]if (something) {
Note: [SPACE] is just one example (replace with a space)
You can also configure notepad ++ to replace tabs with spaces during input, configure as follows:
Settings > Preferences > Tab Settings and select "normal" (or another), the tabs will be replaced by 4 spaces when you click the tab in the editor.
Thus, you do not need to worry about this jshint update and use it without fear of spaces.
What to use in production code:
I recommend storing two versions of your code, the "development version" and the "production version."
The development version should have all the source code, commented out and not related only to the team collaborating with the project, a good tool for saving the project (in the case of open source) is https://github.com
The production version should be compressed by your source code (without comments and unnecessary spaces), a tool for this would be: http://jscompress.com/