UNPKG

textlint

Version:

The pluggable linting tool for text and markdown.

13 lines 648 B
import { TextlintKernelRule } from "@textlint/kernel"; /** * Load all rule modules from specified directory. * These are filtered by [extname] * @param {String} [rulesDir] Path to rules directory, may be relative. Defaults to `lib/rules`. * @param {String | String[]} [extnames] extension names * @returns {Object} Loaded rule modules by rule ids (file names). */ export declare function loadFromDir(rulesDir: string, extnames?: string[] | string): { [index: string]: any; }; export declare function loadFromDirAsESM(rulesDir: string, extnames?: string[] | string): Promise<TextlintKernelRule[]>; //# sourceMappingURL=rule-loader.d.ts.map