UNPKG

textlint

Version:

The pluggable linting tool for text and markdown.

60 lines 1.82 kB
export interface ConfigModulePrefix { CONFIG_PACKAGE_PREFIX: string; FILTER_RULE_NAME_PREFIX: string; RULE_NAME_PREFIX: string; RULE_PRESET_NAME_PREFIX: string; PLUGIN_NAME_PREFIX: string; } /** * This class aim to resolve textlint's package name and get the module path. * * Define * * - `package` is npm package * - `module` is package's main module * * ## Support * * - textlint-rule-* * - textlint-preset-* * - textlint-plugin-* * - textlint-config-* */ export declare class TextLintModuleResolver { private baseDirectory; constructor(config: { rulesBaseDirectory?: string; }); /** * Take package name, and return path to module. * @param {string} packageName * @returns {string} return path to module */ resolveRulePackageName(packageName: string): string; /** * Take package name, and return path to module. * @param {string} packageName * @returns {string} return path to module */ resolveFilterRulePackageName(packageName: string): string; /** * Take package name, and return path to module. * @param {string} packageName * @returns {string} return path to module */ resolvePluginPackageName(packageName: string): string; /** * Take package name, and return path to module. * @param {string} packageName * The user must specify preset- prefix to these `packageName`. * @returns {string} return path to module */ resolvePresetPackageName(packageName: string): string; /** * Take Config package name, and return path to module. * @param {string} packageName * @returns {string} return path to module */ resolveConfigPackageName(packageName: string): string; } //# sourceMappingURL=textlint-module-resolver.d.ts.map