import { Context, __export, defaultOptions, plugin, schema } from "./chunk-IWHYDEIT.js"; // src/suggest-move-out-utils.ts var suggest_move_out_utils_exports = {}; __export(suggest_move_out_utils_exports, { RULE: () => RULE, rule: () => rule }); import { ESLintUtils } from "@typescript-eslint/utils"; var RULE = "suggest-move-out-utils"; var cache; var rule = ESLintUtils.RuleCreator.withoutDocs({ meta: { messages: { [RULE]: `File should be moved from "{{ utils }}" to "{{ mod }}" because it's only used there.` }, schema, type: "problem" }, defaultOptions: [defaultOptions], create(context) { const ctx = new Context(context, plugin, RULE, defaultOptions); if (!cache) { cache = ctx.dependencyMap(); } if (!ctx.isUtils) return {}; return { Program(node) { const path = cache?.isInvalidUtil(context.filename); if (path) { context.report({ node, messageId: RULE, data: path.data() }); } } }; } }); export { RULE, rule, suggest_move_out_utils_exports };