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.

git-svn-id: https://develop.svn.wordpress.org/trunk@57702 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2024-02-23 10:36:36 +00:00
parent 6ffe615d1c
commit 38ee6fc470
2 changed files with 2 additions and 4 deletions

View File

@ -3,14 +3,12 @@
"curly": true, "curly": true,
"eqeqeq": true, "eqeqeq": true,
"eqnull": true, "eqnull": true,
"esversion": 3, "esversion": 6,
"expr": true, "expr": true,
"immed": true, "immed": true,
"noarg": true, "noarg": true,
"nonbsp": true, "nonbsp": true,
"onevar": true,
"quotmark": "single", "quotmark": "single",
"trailing": true,
"undef": true, "undef": true,
"unused": true, "unused": true,

View File

@ -311,7 +311,7 @@
$('#pass-strength-result').addClass('short').html( pwsL10n.mismatch ); $('#pass-strength-result').addClass('short').html( pwsL10n.mismatch );
break; break;
default: default:
$('#pass-strength-result').addClass('short').html( pwsL10n['short'] ); $('#pass-strength-result').addClass('short').html( pwsL10n.short );
} }
} }