Skip to content

Commit

Permalink
Build/Test Tools: Update JSHint config to remove deprecated options.
Browse files Browse the repository at this point in the history
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.

git-svn-id: https://develop.svn.wordpress.org/trunk@57702 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
swissspidy committed Feb 23, 2024
1 parent 6ffe615 commit 38ee6fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
"curly": true,
"eqeqeq": true,
"eqnull": true,
"esversion": 3,
"esversion": 6,
"expr": true,
"immed": true,
"noarg": true,
"nonbsp": true,
"onevar": true,
"quotmark": "single",
"trailing": true,
"undef": true,
"unused": true,

Expand Down
2 changes: 1 addition & 1 deletion src/js/_enqueues/admin/user-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
$('#pass-strength-result').addClass('short').html( pwsL10n.mismatch );
break;
default:
$('#pass-strength-result').addClass('short').html( pwsL10n['short'] );
$('#pass-strength-result').addClass('short').html( pwsL10n.short );
}
}

Expand Down

0 comments on commit 38ee6fc

Please sign in to comment.