jshint/jshint — Issue #314: JSDoc tags (bonus track : Tabs vs Spaces troll)
Author: arcanin
Created: 2011-10-21 15:56:40+00:00
State: open

Hello,

This code will make jshint throw :

```javascript
var foo = {
/**
* Does something.
*/
bar: function () {
}
};
```

```
foo.js: line 3, col 1, Mixed spaces and tabs.
foo.js: line 4, col 1, Mixed spaces and tabs.
```

It's not strictly an erroneous behavior, but I suggest that this pattern (tabs only then spaces only) does not throw errors (it could imply to slighty change the error message to clarify the behavior, however).

A justification of using both spaces and tabs is located here : http://www.emacswiki.org/emacs/SmartTabs
Using this convention, tabs didn't get any disavantage, and JSDoc tags will not throw errors.

Thanks,