Skip to content

Commit aa4245a

Browse files
committed
style: lint codebase
1 parent 4cb31cb commit aa4245a

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

playground/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<script setup lang="ts">
2828
import { useHead, shallowRef, ref } from "#imports";
2929
import sample from "@/sample.json";
30-
import { type EditorInstance } from "#unlayer/props";
30+
import type { EditorInstance } from "#unlayer/props";
3131
3232
useHead({ title: "Nuxt - Unlayer" });
3333

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, addComponent } from "@nuxt/kit";
22
import { name, version } from "../package.json";
33

44
// Module options TypeScript interface definition
5-
export interface ModuleOptions {}
5+
export type ModuleOptions = object;
66

77
export default defineNuxtModule<ModuleOptions>({
88
meta: {

src/runtime/props.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
12
export type DisplayMode = "email" | "web" | "popup";
23
export type ThemeColor = "light" | "dark";
34
export type DockPosition = "right" | "left";
@@ -203,7 +204,7 @@ export interface CustomButton {
203204
text: string;
204205
icon: string;
205206
onSetup: () => object;
206-
// eslint-disable-next-line @typescript-eslint/ban-types
207+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
207208
onAction: (data: any, callback: Function) => void;
208209
}
209210

@@ -502,7 +503,6 @@ export interface LinkType {
502503
attrs?: {
503504
href?: string;
504505
target?: string;
505-
// eslint-disable-next-line @typescript-eslint/ban-types
506506
onClick?: string | Function;
507507
class?: string;
508508
[key: string]: any;
@@ -528,18 +528,15 @@ export type EditorInstance = {
528528
* @see https://docs.unlayer.com/docs/custom-columns
529529
*/
530530
registerColumns(cells: number[]): void;
531-
// eslint-disable-next-line @typescript-eslint/ban-types
532531
registerCallback(type: string, callback: Function): void;
533532
registerCallback(
534533
type: "image",
535534
callback: (file: FileInfo, done: (data: FileUploadDoneData) => void) => void
536535
): void;
537536
unregisterCallback(type: string): void;
538-
// eslint-disable-next-line @typescript-eslint/ban-types
539537
registerProvider(type: string, callback: Function): void;
540538
unregisterProvider(type: string): void;
541539
reloadProvider(type: string): void;
542-
// eslint-disable-next-line @typescript-eslint/ban-types
543540
addEventListener(type: string, callback: Function): void;
544541
addEventListener(type: "editor:ready", callback: () => void): void;
545542
addEventListener(

0 commit comments

Comments
 (0)