Skip to content

Commit

Permalink
style: lint codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
BayBreezy committed Sep 2, 2024
1 parent 4cb31cb commit aa4245a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script setup lang="ts">
import { useHead, shallowRef, ref } from "#imports";
import sample from "@/sample.json";
import { type EditorInstance } from "#unlayer/props";
import type { EditorInstance } from "#unlayer/props";
useHead({ title: "Nuxt - Unlayer" });
Expand Down
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, addComponent } from "@nuxt/kit";
import { name, version } from "../package.json";

// Module options TypeScript interface definition
export interface ModuleOptions {}
export type ModuleOptions = object;

export default defineNuxtModule<ModuleOptions>({
meta: {
Expand Down
7 changes: 2 additions & 5 deletions src/runtime/props.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
export type DisplayMode = "email" | "web" | "popup";
export type ThemeColor = "light" | "dark";
export type DockPosition = "right" | "left";
Expand Down Expand Up @@ -203,7 +204,7 @@ export interface CustomButton {
text: string;
icon: string;
onSetup: () => object;
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
onAction: (data: any, callback: Function) => void;
}

Expand Down Expand Up @@ -502,7 +503,6 @@ export interface LinkType {
attrs?: {
href?: string;
target?: string;
// eslint-disable-next-line @typescript-eslint/ban-types
onClick?: string | Function;
class?: string;
[key: string]: any;
Expand All @@ -528,18 +528,15 @@ export type EditorInstance = {
* @see https://docs.unlayer.com/docs/custom-columns
*/
registerColumns(cells: number[]): void;
// eslint-disable-next-line @typescript-eslint/ban-types
registerCallback(type: string, callback: Function): void;
registerCallback(
type: "image",
callback: (file: FileInfo, done: (data: FileUploadDoneData) => void) => void
): void;
unregisterCallback(type: string): void;
// eslint-disable-next-line @typescript-eslint/ban-types
registerProvider(type: string, callback: Function): void;
unregisterProvider(type: string): void;
reloadProvider(type: string): void;
// eslint-disable-next-line @typescript-eslint/ban-types
addEventListener(type: string, callback: Function): void;
addEventListener(type: "editor:ready", callback: () => void): void;
addEventListener(
Expand Down

0 comments on commit aa4245a

Please sign in to comment.