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:
parent
bbaaeaebcc
commit
7c9dd0b76c
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
import { useEffect, useState } from 'react';
|
||||
import slugify from 'slugify';
|
||||
|
||||
import { NodeData } from '../common/interfaces';
|
||||
import { createPenpotFile } from './converters';
|
||||
import { validateFont } from './validators';
|
||||
|
||||
|
@ -12,8 +13,7 @@ export const PenpotExporter = () => {
|
|||
setMissingFonts(missingFonts => missingFonts.add(font));
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const onMessage = (event: any) => {
|
||||
const onMessage = (event: MessageEvent<{ pluginMessage: { type: string; data: NodeData } }>) => {
|
||||
if (event.data.pluginMessage.type == 'FIGMAFILE') {
|
||||
const file = createPenpotFile(event.data.pluginMessage.data);
|
||||
|
||||
|
|
Loading…
Reference in a new issue