mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-12 13:38:32 +00:00
fixed eslint warnings
This commit is contained in:
@@ -1 +1,2 @@
|
||||
.idea
|
||||
public/docs/images
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user