Make WordPress Core

Changeset 57702


Ignore:
Timestamp:
02/23/2024 10:36:36 AM (5 months 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.

Location:
trunk
Files:
2 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,
  • trunk/src/js/_enqueues/admin/user-profile.js

    r55974 r57702  
    312312                break;
    313313            default:
    314                 $('#pass-strength-result').addClass('short').html( pwsL10n['short'] );
     314                $('#pass-strength-result').addClass('short').html( pwsL10n.short );
    315315        }
    316316    }
Note: See TracChangeset for help on using the changeset viewer.