Skip to content
This repository has been archived by the owner on Apr 21, 2019. It is now read-only.

JSHint only understands -W* options #4

Open
marteinn opened this issue Oct 27, 2014 · 2 comments
Open

JSHint only understands -W* options #4

marteinn opened this issue Oct 27, 2014 · 2 comments
Labels

Comments

@marteinn
Copy link
Member

/*jshint camelcase: true */
var camel_case=1;

This will raise an error.

/*jshint -W106 */
var camel_case=1;

Will work as expected.

@marteinn marteinn added the bug label Oct 29, 2014
@klingberg
Copy link
Member

Not sure if I follow? Isn't this supposed to raise an error?
screen shot 2014-11-02 at 11 14 13

@marteinn
Copy link
Member Author

marteinn commented Nov 2, 2014

Nope, its supposed to mute the error. So using the -W style /*jshint -W106 */ will mute the error, while the other style,/*jshint camelcase: true */ dont. They should behave in the same way. Do this make more sense? :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants