Eslint fixes

This commit is contained in:
Eric Fennis
2020-07-18 13:13:57 +02:00
parent c9551388d0
commit 018a3af0bd
15 changed files with 333 additions and 5374 deletions
+2 -3
View File
@@ -1,3 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
import Svgo from 'svgo';
import cheerio from 'cheerio';
import { format } from 'prettier';
@@ -48,9 +49,7 @@ function optimize(svg) {
function setAttrs(svg) {
const $ = cheerio.load(svg);
Object.keys(DEFAULT_ATTRS).forEach(key =>
$('svg').attr(key, DEFAULT_ATTRS[key]),
);
Object.keys(DEFAULT_ATTRS).forEach(key => $('svg').attr(key, DEFAULT_ATTRS[key]));
return $('body').html();
}