/** * Copyright (c) 2025 Ofri Peretz * Licensed under the MIT License. Use of this source code is governed by the * MIT license that can be found in the LICENSE file. */ /** * ESLint Rule: no-dynamic-require * Forbid `require()` calls with expressions (eslint-plugin-import inspired) */ import type { TSESLint } from '@interlace/eslint-devkit'; export interface Options { /** Allow dynamic requires in specific contexts */ allowContexts?: ('test' | 'config' | 'build' | 'runtime')[]; /** Allow specific patterns of dynamic requires */ allowPatterns?: string[]; } type RuleOptions = [Options?]; export declare const noDynamicRequire: TSESLint.RuleModule<"dynamicRequire", RuleOptions, unknown, TSESLint.RuleListener> & { name: string; }; export {};