[wp-trac] [WordPress Trac] #28236: JSHint `onevar` arg is being deprecated and dropped

WordPress Trac noreply at wordpress.org
Tue May 13 16:01:09 UTC 2014


#28236: JSHint `onevar` arg is being deprecated and dropped
------------------------------+------------------------------
 Reporter:  georgestephanis   |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  dev-feedback      |     Focuses:  javascript
------------------------------+------------------------------

Comment (by scott.gonzalez):

 JSHint is removing options that are purely style related. The use of
 `onevar` doesn't affect actual code quality or prevent bugs, so it's being
 removed. There are a few options for dealing with this.

 You can move to another tool for style checks, such as
 [https://www.npmjs.org/package/jscs JSCS] or
 [https://www.npmjs.org/package/esformatter esformatter]. Both are being
 constantly improved and have a focus on handling the style related options
 being removed form JSHint. jQuery team members are currently investing in
 both solutions (we now have at least one maintainer on each project).

 Another option is to rebuild the style options as extensions for JSHint.
 JSHint's API is being redesigned to make extensions/plugins easy to add,
 so this will likely happen by someone in the community anyway.

 A final option is to just do nothing. As long as JSHint 2.x is working
 well for you, there's no real need to upgrade. Waiting to see if the
 community settles on a single solution seems like a legitimate option.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28236#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list