Skip to content

Commit beba199

Browse files
committed
refactor: comply with eslint rules
1 parent 5ab00ba commit beba199

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

packages/brownie/src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ export interface BrownieStore {}
1111

1212
type StoreListener = () => void;
1313

14+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
15+
type HostObject = any;
16+
1417
interface StoreCache {
15-
hostObject: any;
18+
hostObject: HostObject;
1619
snapshot: Record<string, unknown>;
1720
listeners: Set<StoreListener>;
1821
}
1922

2023
const stores = new Map<string, StoreCache>();
2124

22-
function getHostObject(key: string): any {
23-
// @ts-ignore
25+
function getHostObject(key: string): HostObject {
26+
// @ts-expect-error - untyped global prop set by BrownieInstaller.cpp
2427
return global.__getStore?.(key);
2528
}
2629

packages/cli/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ program
2828
program
2929
.optionsGroup('Global options:')
3030
.option('--verbose', 'enable verbose logging')
31-
.hook('preAction', (_cmd) => {
31+
.hook('preAction', () => {
3232
const opts = program.opts();
3333
if (opts.verbose) {
3434
logger.setVerbose(opts.verbose ?? false);
@@ -43,7 +43,7 @@ program.configureHelp({
4343
});
4444

4545
function registrationHelper(
46-
commandsRegistration: Record<string, any | Command | ExampleUsage>,
46+
commandsRegistration: Record<string, unknown | Command | ExampleUsage>,
4747
groupName: string
4848
) {
4949
program.commandsGroup(groupName);

0 commit comments

Comments
 (0)