[wp-trac] [WordPress Trac] #28236: JSHint `onevar` and `trailing` args are deprecated and dropped

WordPress Trac noreply at wordpress.org
Fri Feb 23 10:36:50 UTC 2024


#28236: JSHint `onevar` and `trailing` args are deprecated and dropped
------------------------------+-------------------------
 Reporter:  georgestephanis   |       Owner:  swissspidy
     Type:  task (blessed)    |      Status:  closed
 Priority:  normal            |   Milestone:  6.5
Component:  Build/Test Tools  |     Version:  3.8
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  javascript
------------------------------+-------------------------
Changes (by swissspidy):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57702" 57702]:
 {{{
 #!CommitTicketReference repository="" revision="57702"
 Build/Test Tools: Update JSHint config to remove deprecated options.

 Removes deprecated options that no longer have any effect, and updates the
 targeted ES version in line with WordPress’ browser support.

 This change mostly allows new code to properly use trailing commas, as
 added by the Prettier formatter.

 Future efforts should rather go towards adopting ESLint for code
 formatting, see #31823.

 Props netweb.
 Fixes #28236.
 }}}

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


More information about the wp-trac mailing list