[wp-trac] [WordPress Trac] #28236: JSHint `onevar` and `trailing` args are deprecated and dropped (was: JSHint `onevar` arg is being deprecated and dropped)

WordPress Trac noreply at wordpress.org
Tue Jan 27 02:54:13 UTC 2015


#28236: JSHint `onevar` and `trailing` args are deprecated and dropped
------------------------------+-----------------------------
 Reporter:  georgestephanis   |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Build/Test Tools  |     Version:  3.8
 Severity:  normal            |  Resolution:
 Keywords:  dev-feedback      |     Focuses:  javascript
------------------------------+-----------------------------

Comment (by netweb):

 A few things here....

 Since we are now using JSHint v2.5 via `grunt-contrib-jshint` v0.10.0 in
 our `package.json` the `onevar` and `trailing` options in `.jshintrc` are
 pointless, support for both of these was removed in JSHint v2.5.

 I've had my head in JSCS for the past couple of days and I'll create a
 JSCS ticket and link back here once done to investigate JSCS options
 further and to add support for these now removed `onevar` and `trailing`
 options via JSCS.

 JSCS includes equivalent options for ease of migrating settings from
 JSHint to JSCS

 * `onevar` - http://jscs.info/rules.html#requiremultiplevardecl
 * `trailing` - http://jscs.info/rules.html#disallowtrailingwhitespace

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


More information about the wp-trac mailing list