Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Aug 1, 2015

It might not be obvious to everyone that IE 9 & Android 4.0 are not
ES5-compliant browsers (by a large margin) so it's better to add a support
comment. This requires slight changes in parsing the config file
as it's not a pure JSON anymore. JSHint understands such files without
problems.

It might not be obvious to everyone that IE 9 & Android 4.0 are not
ES5-compliant browsers (by a large margin) so it's better to add a support
comment. This requires slight changes in parsing the config file
as it's not a pure JSON anymore. JSHint understands such files without
problems.
@mgol mgol added this to the 3.0.0 milestone Aug 1, 2015
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn, that's ugly. It also appears to be both undocumented and untested in JSHint (albeit very longstanding), and just feels like bad form. On the other hand, dummy keys aren't really any better. Color me ambivalent about the change, and—per usual—frustrated with JSON.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize it's undocumented (I assume it should be, @rwaldron?). I agree it feels bad, it just felt more bad to me to have this undocumented and have someone remove the option prematurely, as we did on master before.

@mgol mgol self-assigned this Aug 3, 2015
@mgol mgol removed the Needs review label Aug 3, 2015
@mgol mgol closed this in 669cb16 Aug 3, 2015
@mgol mgol deleted the jshintrc-es3-comment branch August 3, 2015 16:53
mgol added a commit that referenced this pull request Aug 3, 2015
It might not be obvious to everyone that IE 9 & Android 4.0 are not
ES5-compliant browsers (by a large margin) so it's better to add a support
comment. This requires slight changes in parsing the config file
as it's not a pure JSON anymore. JSHint understands such files without
problems.

(cherry-picked from 669cb16)

Closes gh-2520
riichard pushed a commit to riichard/jquery that referenced this pull request Sep 20, 2015
It might not be obvious to everyone that IE 9 & Android 4.0 are not
ES5-compliant browsers (by a large margin) so it's better to add a support
comment. This requires slight changes in parsing the config file
as it's not a pure JSON anymore. JSHint understands such files without
problems.

Closes jquerygh-2520
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

3 participants