Twenty Twenty: Use `jshint` exclude statements instead of `eslint`.
Also, exclude the `node_modules` folder within `twentytwentyone`. See #51526. Built from https://develop.svn.wordpress.org/trunk@49250 git-svn-id: http://core.svn.wordpress.org/trunk@49012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
806cfea146
commit
b4853c1dd9
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
* @return {number} - Returns the luminance, number between 0 and 255.
|
||||
*/
|
||||
function twentytwentyoneGetHexLum( hex ) { // eslint-disable-line no-unused-vars
|
||||
function twentytwentyoneGetHexLum( hex ) { // jshint ignore:line
|
||||
var rgb = twentytwentyoneGetRgbFromHex( hex );
|
||||
return Math.round( ( 0.2126 * rgb.r ) + ( 0.7152 * rgb.g ) + ( 0.0722 * rgb.b ) );
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ function twentytwentyoneCollapseMenuOnClickOutside( event ) {
|
|||
*
|
||||
* @param {Element} el - The element.
|
||||
*/
|
||||
function twentytwentyoneExpandSubMenu( el ) { // eslint-disable-line no-unused-vars
|
||||
function twentytwentyoneExpandSubMenu( el ) { // jshint ignore:line
|
||||
// Close submenu that was opened from a hover action.
|
||||
// We'll return early in this case to avoid changing the aria-expanded attribute.
|
||||
if ( el.parentNode.classList.contains( 'hover' ) ) {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6-alpha-49249';
|
||||
$wp_version = '5.6-alpha-49250';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue