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 }/bower.json`, generateBower() );
|
||||||
|
|
||||||
await fs.writeFile( `${ Release.dir.dist }/README.md`,
|
await fs.writeFile( `${ Release.dir.dist }/README.md`,
|
||||||
editReadme( readme, blogPostLink ) );
|
editReadme( readme, blogPostLink ) );
|
||||||
|
|
||||||
console.log( "Files ready to add." );
|
console.log( "Files ready to add." );
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
"@babel/plugin-transform-for-of": "7.4.3",
|
"@babel/plugin-transform-for-of": "7.4.3",
|
||||||
"commitplease": "3.2.0",
|
"commitplease": "3.2.0",
|
||||||
"core-js-bundle": "3.0.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",
|
"eslint-plugin-import": "2.18.2",
|
||||||
"grunt": "1.0.4",
|
"grunt": "1.0.4",
|
||||||
"grunt-babel": "8.0.0",
|
"grunt-babel": "8.0.0",
|
||||||
|
@ -2,6 +2,6 @@ function nodeName( elem, name ) {
|
|||||||
|
|
||||||
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
|
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
|
||||||
|
|
||||||
};
|
}
|
||||||
|
|
||||||
export default nodeName;
|
export default nodeName;
|
||||||
|
@ -30,6 +30,6 @@ function isAutoPx( prop ) {
|
|||||||
// 2. The prop is not empty.
|
// 2. The prop is not empty.
|
||||||
return ralphaStart.test( prop ) &&
|
return ralphaStart.test( prop ) &&
|
||||||
rautoPx.test( prop[ 0 ].toUpperCase() + prop.slice( 1 ) );
|
rautoPx.test( prop[ 0 ].toUpperCase() + prop.slice( 1 ) );
|
||||||
};
|
}
|
||||||
|
|
||||||
export default isAutoPx;
|
export default isAutoPx;
|
||||||
|
@ -12,4 +12,4 @@ export default function( elem ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return view.getComputedStyle( elem );
|
return view.getComputedStyle( elem );
|
||||||
};
|
}
|
||||||
|
@ -17,4 +17,4 @@ export default function( elem, el ) {
|
|||||||
return elem.style.display === "none" ||
|
return elem.style.display === "none" ||
|
||||||
elem.style.display === "" &&
|
elem.style.display === "" &&
|
||||||
jQuery.css( elem, "display" ) === "none";
|
jQuery.css( elem, "display" ) === "none";
|
||||||
};
|
}
|
||||||
|
@ -17,4 +17,4 @@ export default function( elem, options, callback ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
};
|
}
|
||||||
|
@ -10,4 +10,4 @@ export default function( owner ) {
|
|||||||
// - Object
|
// - Object
|
||||||
// - Any
|
// - Any
|
||||||
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
|
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
|
||||||
};
|
}
|
||||||
|
@ -13,4 +13,4 @@ export default function( elem, dir, until ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return matched;
|
return matched;
|
||||||
};
|
}
|
||||||
|
@ -8,4 +8,4 @@ export default function( n, elem ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return matched;
|
return matched;
|
||||||
};
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
export default function isWindow( obj ) {
|
export default function isWindow( obj ) {
|
||||||
return obj != null && obj === obj.window;
|
return obj != null && obj === obj.window;
|
||||||
};
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user