@elsikora/eslint-config
Version:
ESLint configuration vision of ElsiKora
10 lines (9 loc) • 536 B
TypeScript
import type { ESLint } from "eslint";
/**
* Extracts a sub-plugin from a plugin object.
* @param {ESLint.Plugin} plugin - The plugin object to extract the sub-plugin from
* @param {string} subPluginName - The name of the sub-plugin to extract
* @param {string} skipPluginName - The name of the plugin to skip when extracting the sub-plugin
* @returns {ESLint.Plugin} The extracted sub-plugin object
*/
export declare function extractSubPlugin(plugin: ESLint.Plugin, subPluginName: string, skipPluginName?: string): ESLint.Plugin;