From 197067c47720e07ac8f1c1741ddd27831474db0c Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Tue, 20 Oct 2020 18:32:03 +0000 Subject: [PATCH] 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 --- .../themes/twentytwentyone/assets/js/customize-helpers.js | 2 +- .../themes/twentytwentyone/assets/js/primary-navigation.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js b/src/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js index 94e00ca617..6523860a87 100644 --- a/src/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js +++ b/src/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js @@ -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 ) ); } diff --git a/src/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js b/src/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js index b4e09a1792..54be8e3de1 100644 --- a/src/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js +++ b/src/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js @@ -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' ) ) {