Twenty Twenty: Use jshint
exclude statements instead of eslint
.
Also, exclude the `node_modules` folder within `twentytwentyone`. See #51526. git-svn-id: https://develop.svn.wordpress.org/trunk@49250 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ad2830f903
commit
197067c477
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @return {number} - Returns the luminance, number between 0 and 255.
|
* @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 );
|
var rgb = twentytwentyoneGetRgbFromHex( hex );
|
||||||
return Math.round( ( 0.2126 * rgb.r ) + ( 0.7152 * rgb.g ) + ( 0.0722 * rgb.b ) );
|
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.
|
* @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.
|
// Close submenu that was opened from a hover action.
|
||||||
// We'll return early in this case to avoid changing the aria-expanded attribute.
|
// We'll return early in this case to avoid changing the aria-expanded attribute.
|
||||||
if ( el.parentNode.classList.contains( 'hover' ) ) {
|
if ( el.parentNode.classList.contains( 'hover' ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user