Build: Update eslint-config-jquery, fix linting violations

Closes gh-4696
Ref jquery/eslint-config-jquery#15
Ref jquery/eslint-config-jquery#16
This commit is contained in:
Michał Gołębiowski-Owczarek 2020-05-18 22:25:49 +02:00 committed by GitHub
parent d96111e18b
commit ef4d6ca6c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 11 deletions

View File

@ -106,7 +106,7 @@ module.exports = function( Release, files, complete ) {
await fs.writeFile( `${ Release.dir.dist }/bower.json`, generateBower() );
await fs.writeFile( `${ Release.dir.dist }/README.md`,
editReadme( readme, blogPostLink ) );
editReadme( readme, blogPostLink ) );
console.log( "Files ready to add." );
}

View File

@ -29,7 +29,7 @@
"@babel/plugin-transform-for-of": "7.4.3",
"commitplease": "3.2.0",
"core-js-bundle": "3.0.0",
"eslint-config-jquery": "2.0.0",
"eslint-config-jquery": "3.0.0",
"eslint-plugin-import": "2.18.2",
"grunt": "1.0.4",
"grunt-babel": "8.0.0",

View File

@ -2,6 +2,6 @@ function nodeName( elem, name ) {
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
};
}
export default nodeName;

View File

@ -30,6 +30,6 @@ function isAutoPx( prop ) {
// 2. The prop is not empty.
return ralphaStart.test( prop ) &&
rautoPx.test( prop[ 0 ].toUpperCase() + prop.slice( 1 ) );
};
}
export default isAutoPx;

View File

@ -12,4 +12,4 @@ export default function( elem ) {
}
return view.getComputedStyle( elem );
};
}

View File

@ -17,4 +17,4 @@ export default function( elem, el ) {
return elem.style.display === "none" ||
elem.style.display === "" &&
jQuery.css( elem, "display" ) === "none";
};
}

View File

@ -17,4 +17,4 @@ export default function( elem, options, callback ) {
}
return ret;
};
}

View File

@ -10,4 +10,4 @@ export default function( owner ) {
// - Object
// - Any
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
};
}

View File

@ -13,4 +13,4 @@ export default function( elem, dir, until ) {
}
}
return matched;
};
}

View File

@ -8,4 +8,4 @@ export default function( n, elem ) {
}
return matched;
};
}

View File

@ -1,3 +1,3 @@
export default function isWindow( obj ) {
return obj != null && obj === obj.window;
};
}