Skip to main content

recommended-type-checked

runtime-cleanup.configs["recommended-type-checked"] is reserved for recommended cleanup rules that need TypeScript parser services.

This preset does not set parserOptions.projectService. Configure type-aware parsing in your own flat config before adding it:

import tsParser from "@typescript-eslint/parser";
import runtimeCleanup from "eslint-plugin-runtime-cleanup";

export default [
{
files: ["**/*.{ts,tsx,mts,cts}"],
languageOptions: {
parser: tsParser,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
runtimeCleanup.configs["recommended-type-checked"],
];

Rules in this presetโ€‹

This preset enables recommended rules and any type-aware recommended additions.

  • Fix legend:
    • fix = autofixable
    • suggest = suggestions available
    • - = report only
RuleFix
no-floating-infinite-animations-
no-floating-web-stream-locks-
RuleFix
no-floating-abort-controllers-
no-floating-audio-contexts-
no-floating-broadcast-channels-
no-floating-child-processes-
no-floating-disposable-stacks-
no-floating-file-watchers-
no-floating-geolocation-watches-
no-floating-media-streams-
no-floating-message-channels-
no-floating-network-connections-
no-floating-object-urls-
no-floating-observers-
no-floating-servers-
no-floating-streams-
no-floating-timers-
no-floating-wake-locks-
no-floating-workers-
no-unmanaged-event-listeners-