Make WordPress Core

Changeset 59963


Ignore:
Timestamp:
03/10/2025 09:24:21 PM (4 months ago)
Author:
westonruter
Message:

Bump esversion from 6 to 10 in JSHint config.

The current esversion 6 corresponds to an ECMAScript version from a decade ago (2015). Updating from 6 to 10 allows the following features to be used in Core JS: the exponentiation operator, async functions, shared memory, atomics, asynchronous iteration, rest/spread properties, various RegExp extensions, and optional catch bindings. These features have been supported by all browsers (except for IE11) well beyond WordPress's browser support policy. This also brings Core's allowed ES version closer in line with Gutenberg which is currently using features like async functions.

Props westonruter, swissspidy, mukesh27.
Fixes #63077.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.jshintrc

    r57702 r59963  
    44    "eqeqeq": true,
    55    "eqnull": true,
    6     "esversion": 6,
     6    "esversion": 10,
    77    "expr": true,
    88    "immed": true,
Note: See TracChangeset for help on using the changeset viewer.