Remove duplicate suppression categories
MODIFY
packages/@romejs/cli-reporter/Reporter.ts
packages/@romejs/cli-reporter/Reporter.ts
@@ -31,7 +31,7 @@ type ListOptions = {
ordered?: boolean;
};
-// rome-suppress lint/noExplicitAny lint/noExplicitAny
+// rome-suppress lint/noExplicitAny
type WrapperFactory = <T extends (...args: Array<any>) => any>(
callback: T,
) => T;

MODIFY
packages/@romejs/core/master/Master.ts
packages/@romejs/core/master/Master.ts
@@ -230,9 +230,9 @@ export default class Master {
process.exit();
}
- // rome-suppress lint/noExplicitAny lint/noExplicitAny
+ // rome-suppress lint/noExplicitAny
wrapFatal<T extends (...args: Array<any>) => any>(callback: T): T {
- // rome-suppress lint/noExplicitAny lint/noExplicitAny
+ // rome-suppress lint/noExplicitAny
return ((...args: Array<any>): any => {
try {
const res = callback(...args);

MODIFY
packages/@romejs/events/Bridge.ts
packages/@romejs/events/Bridge.ts
@@ -84,7 +84,7 @@ export default class Bridge {
type: BridgeType;
messageIdCounter: number;
- // rome-suppress lint/noExplicitAny lint/noExplicitAny
+ // rome-suppress lint/noExplicitAny
events: Map<string, BridgeEvent<any, any>>;
listeners: Set<string>;

MODIFY
packages/@romejs/events/BridgeEvent.ts
packages/@romejs/events/BridgeEvent.ts
@@ -31,7 +31,7 @@ export type BridgeEventOptions = EventOptions & {
};
function validateDirection(
- // rome-suppress lint/noExplicitAny lint/noExplicitAny
+ // rome-suppress lint/noExplicitAny
event: BridgeEvent<any, any>,
eventDirection: BridgeEventDirection,
bridgeType: BridgeType,

MODIFY
packages/@romejs/events/index.ts
packages/@romejs/events/index.ts
@@ -9,7 +9,7 @@ import Event from './Event';
export {Event};
-// rome-suppress lint/noExplicitAny lint/noExplicitAny
+// rome-suppress lint/noExplicitAny
export type AnyEvent = Event<any, any>;
export {default as Bridge} from './Bridge';

MODIFY
packages/@romejs/js-compiler/api/createHook.ts
packages/@romejs/js-compiler/api/createHook.ts
@@ -23,13 +23,13 @@ export type HookDescriptor<State, CallArg, CallReturn> = {
exit?: (path: Path, state: State) => TransformExitResult;
};
-// rome-suppress lint/noExplicitAny lint/noExplicitAny lint/noExplicitAny
+// rome-suppress lint/noExplicitAny
export type AnyHookDescriptor = HookDescriptor<any, any, any>;
export type HookInstance = {
// rome-suppress lint/noExplicitAny
state: any;
- // rome-suppress lint/noExplicitAny lint/noExplicitAny lint/noExplicitAny
+ // rome-suppress lint/noExplicitAny
descriptor: HookDescriptor<any, any, any>;
};

MODIFY
packages/@romejs/js-compiler/lib/Path.ts
packages/@romejs/js-compiler/lib/Path.ts
@@ -124,7 +124,7 @@ export default class Path {
}
provideHook<State>(
- // rome-suppress lint/noExplicitAny lint/noExplicitAny
+ // rome-suppress lint/noExplicitAny
descriptor: HookDescriptor<State, any, any>,
state?: State,
): AnyNode {

Remove duplicate suppression categories