mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
d96111e18b
commit
ef4d6ca6c3
@ -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." );
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -2,6 +2,6 @@ function nodeName( elem, name ) {
|
||||
|
||||
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
export default nodeName;
|
||||
|
@ -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;
|
||||
|
@ -12,4 +12,4 @@ export default function( elem ) {
|
||||
}
|
||||
|
||||
return view.getComputedStyle( elem );
|
||||
};
|
||||
}
|
||||
|
@ -17,4 +17,4 @@ export default function( elem, el ) {
|
||||
return elem.style.display === "none" ||
|
||||
elem.style.display === "" &&
|
||||
jQuery.css( elem, "display" ) === "none";
|
||||
};
|
||||
}
|
||||
|
@ -17,4 +17,4 @@ export default function( elem, options, callback ) {
|
||||
}
|
||||
|
||||
return ret;
|
||||
};
|
||||
}
|
||||
|
@ -10,4 +10,4 @@ export default function( owner ) {
|
||||
// - Object
|
||||
// - Any
|
||||
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
|
||||
};
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ export default function( elem, dir, until ) {
|
||||
}
|
||||
}
|
||||
return matched;
|
||||
};
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ export default function( n, elem ) {
|
||||
}
|
||||
|
||||
return matched;
|
||||
};
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
export default function isWindow( obj ) {
|
||||
return obj != null && obj === obj.window;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user