0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-03 05:10:13 -05:00

remove eslint disable (#12)

This commit is contained in:
Jordi Sala Morales 2024-04-09 10:21:55 +02:00 committed by GitHub
parent bbaaeaebcc
commit 7c9dd0b76c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import slugify from 'slugify'; import slugify from 'slugify';
import { NodeData } from '../common/interfaces';
import { createPenpotFile } from './converters'; import { createPenpotFile } from './converters';
import { validateFont } from './validators'; import { validateFont } from './validators';
@ -12,8 +13,7 @@ export const PenpotExporter = () => {
setMissingFonts(missingFonts => missingFonts.add(font)); setMissingFonts(missingFonts => missingFonts.add(font));
}; };
// eslint-disable-next-line @typescript-eslint/no-explicit-any const onMessage = (event: MessageEvent<{ pluginMessage: { type: string; data: NodeData } }>) => {
const onMessage = (event: any) => {
if (event.data.pluginMessage.type == 'FIGMAFILE') { if (event.data.pluginMessage.type == 'FIGMAFILE') {
const file = createPenpotFile(event.data.pluginMessage.data); const file = createPenpotFile(event.data.pluginMessage.data);