fixed eslint warnings

This commit is contained in:
Karsa
2022-11-30 10:25:59 +01:00
parent 9ba4f8c359
commit c3b9cff578
2 changed files with 2 additions and 5 deletions
+1
View File
@@ -1 +1,2 @@
.idea
public/docs/images
+1 -5
View File
@@ -1,6 +1,6 @@
import fs from "fs";
import path from "path";
import { parseSync, stringify } from 'svgson';
import { parseSync } from 'svgson';
import tags from '../../../tags.json';
import { IconEntity } from "../types";
import { getContributors } from "./fetchAllContributors";
@@ -19,10 +19,6 @@ export async function getData(name: string) {
const fullPath = path.join(directory, `${name}.svg`);
const fileContent = fs.readFileSync(fullPath, "utf8");
const svgNodes = parseSync(fileContent);
const svgContent = svgNodes.children.map((node) => stringify(node)).join('');
const contributors = await getContributors(name);
return {