Skip to content

Commit 2f2a11e

Browse files
committed
Got tired of it
1 parent 4a3f84c commit 2f2a11e

9 files changed

Lines changed: 2 additions & 13 deletions

File tree

biome.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"useNodeAssertStrict": "error"
4141
},
4242
"suspicious": {
43-
"noConsoleLog": "error"
43+
"noConsoleLog": "error",
44+
"noExplicitAny": "off"
4445
}
4546
}
4647
},

packages/docs/remark/transformDirectives.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import { type Visitor, visit } from 'unist-util-visit';
55
interface DirectiveNode extends Node {
66
type: 'textDirective' | 'leafDirective' | 'containerDirective';
77
name: string;
8-
// biome-ignore lint/suspicious/noExplicitAny: ignore
98
attributes: Record<string, any>;
10-
// biome-ignore lint/suspicious/noExplicitAny: ignore
119
data: Record<string, any>;
1210
}
1311

packages/knip/src/CacheConsultant.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { timerify } from './util/Performance.js';
22
import { type FileDescriptor, FileEntryCache } from './util/file-entry-cache.js';
33
import { version } from './version.js';
44

5-
// biome-ignore lint/suspicious/noExplicitAny: deal with it
65
const dummyFileDescriptor: FileDescriptor<any> = { key: '', changed: true, notFound: true };
76

87
type CacheOptions = {

packages/knip/src/ConfigurationChief.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ export class ConfigurationChief {
111111

112112
resolvedConfigFilePath?: string;
113113

114-
// biome-ignore lint/suspicious/noExplicitAny: raw incoming user data
115114
rawConfig?: any;
116115

117116
constructor({ cwd, isProduction, isStrict, isIncludeEntryExports, workspace }: ConfigurationManagerOptions) {

packages/knip/src/plugins/nuxt/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const isEnabled: IsPluginEnabled = ({ dependencies }) => {
1515
const isEnabled = hasDependency(dependencies, enablers);
1616

1717
// TODO Add generic way for plugins to init?
18-
// biome-ignore lint/suspicious/noExplicitAny: deal with it
1918
if (isEnabled && !('defineNuxtConfig' in globalThis)) (globalThis as any).defineNuxtConfig = (c: any) => c;
2019

2120
return isEnabled;

packages/knip/src/plugins/playwright/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ type ReporterDescription = Readonly<
2727
]
2828
| ['null']
2929
| [string]
30-
// biome-ignore lint/suspicious/noExplicitAny: deal with it
3130
| [string, any]
3231
>;
3332

packages/knip/src/types/plugins.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ export interface PluginOptions extends BaseOptions {
2727
enabledPlugins: string[];
2828
}
2929

30-
// biome-ignore lint/suspicious/noExplicitAny: TODO
3130
export type ResolveEntryPaths<T = any> = (config: T, options: PluginOptions) => Promise<string[]> | string[];
3231

33-
// biome-ignore lint/suspicious/noExplicitAny: TODO
3432
export type ResolveConfig<T = any> = (config: T, options: PluginOptions) => Promise<string[]> | string[];
3533

3634
export type Resolve = (options: PluginOptions) => Promise<string[]> | string[];

packages/knip/src/util/Performance.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { debugLog } from './debug.js';
99

1010
const { performance: isEnabled = false } = parsedArgValues;
1111

12-
// biome-ignore lint/suspicious/noExplicitAny: ignore
1312
export const timerify = <T extends (...params: any[]) => any>(fn: T, name: string = fn.name): T => {
1413
if (!isEnabled) return fn;
1514
return performance.timerify(Object.defineProperty(fn, 'name', { get: () => name }));

packages/knip/src/util/object.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/suspicious/noExplicitAny: TODO
21
export const getValuesByKeyDeep = (obj: any, key: string): unknown[] => {
32
const objects = [];
43
if (obj && typeof obj === 'object') {
@@ -14,7 +13,6 @@ export const getValuesByKeyDeep = (obj: any, key: string): unknown[] => {
1413
return objects;
1514
};
1615

17-
// biome-ignore lint/suspicious/noExplicitAny: TODO
1816
export const getStringValues = (obj: any): string[] => {
1917
if (typeof obj === 'string') return [obj];
2018
let values: string[] = [];
@@ -38,5 +36,4 @@ export const getKeysByValue = <T>(obj: T, value: unknown): (keyof T)[] => {
3836
return keys;
3937
};
4038

41-
// biome-ignore lint/suspicious/noExplicitAny: TODO
4239
export const get = <T>(obj: T, path: string) => path.split('.').reduce((o: any, p) => o?.[p], obj);

0 commit comments

Comments
 (0)