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:
Jonathan Desrosiers 2020-10-20 18:32:03 +00:00
parent ad2830f903
commit 197067c477
2 changed files with 2 additions and 2 deletions

View File

@ -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 ) );
}

View File

@ -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' ) ) {