Make WordPress Core

Changeset 57702 for trunk/.jshintrc


Ignore:
Timestamp:
02/23/2024 10:36:36 AM (2 years ago)
Author:
swissspidy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.jshintrc

    r56074 r57702  
    44    "eqeqeq": true,
    55    "eqnull": true,
    6     "esversion": 3,
     6    "esversion": 6,
    77    "expr": true,
    88    "immed": true,
    99    "noarg": true,
    1010    "nonbsp": true,
    11     "onevar": true,
    1211    "quotmark": "single",
    13     "trailing": true,
    1412    "undef": true,
    1513    "unused": true,
Note: See TracChangeset for help on using the changeset viewer.