mirror of
git://develop.git.wordpress.org/
synced 2025-01-16 20:38:35 +01:00
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:
parent
6ffe615d1c
commit
38ee6fc470
@ -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,
|
||||||
|
|
||||||
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user