1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

Format all plugins with prettier

This commit is contained in:
Bogdan Chadkin
2021-03-09 19:58:00 +03:00
parent 1be0d0dba1
commit 00ec0f71fe
41 changed files with 2053 additions and 1992 deletions

View File

@ -5,7 +5,7 @@ exports.type = 'perItem';
exports.active = true;
exports.params = {
removeAny: true
removeAny: true,
};
exports.description = 'removes <desc>';
@ -24,9 +24,13 @@ var standardDescs = /^(Created with|Created using)/;
*
* @author Daniel Wabyick
*/
exports.fn = function(item, params) {
return !item.isElem('desc') || !(params.removeAny || item.isEmpty() ||
standardDescs.test(item.content[0].text));
exports.fn = function (item, params) {
return (
!item.isElem('desc') ||
!(
params.removeAny ||
item.isEmpty() ||
standardDescs.test(item.content[0].text)
)
);
};