Skip to content

Commit

Permalink
Fix lint errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnesfield committed Nov 30, 2024
1 parent d195690 commit a9edbcb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import _eslint from '@rollup/plugin-eslint';
import _typescript from '@rollup/plugin-typescript';
import { RollupOptions } from 'rollup';
import { PluginImpl, RollupOptions } from 'rollup';
import cleanup from 'rollup-plugin-cleanup';
import dts from 'rollup-plugin-dts';
import esbuild from 'rollup-plugin-esbuild';
import _dts, { Options as RollupPluginDtsOptions } from 'rollup-plugin-dts';
import _esbuild, {
Options as RollupPluginEsbuildOptions
} from 'rollup-plugin-esbuild';
import outputSize from 'rollup-plugin-output-size';
import pkg from './package.json' with { type: 'json' };

// NOTE: remove once import errors are fixed for their respective packages
const dts = _dts as unknown as PluginImpl<RollupPluginDtsOptions>;
const esbuild = _esbuild as unknown as PluginImpl<RollupPluginEsbuildOptions>;
const eslint = _eslint as unknown as typeof _eslint.default;
const typescript = _typescript as unknown as typeof _typescript.default;

Expand Down
1 change: 1 addition & 0 deletions src/core/spec.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { argstree } from './argstree.js';
import { Node, NodeData, Options } from './core.types.js';

/** The spec options. */
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SpecOptions extends Omit<Options, 'alias' | 'args'> {}

/** The spec object. */
Expand Down
2 changes: 1 addition & 1 deletion src/utils/object.utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function has<T extends Record<keyof any, any>>(
export function has<T extends Record<keyof unknown, unknown>>(
obj: T,
prop: keyof T
): boolean {
Expand Down

0 comments on commit a9edbcb

Please sign in to comment.