@kitschpatrol/remark-config
Version:
Markdown and MDX linting for @kitschpatrol/shared-config.
26 lines (25 loc) • 841 B
TypeScript
import { PluggableList, Preset, Preset as RemarkConfig } from "unified";
//#region src/config.d.ts
declare const remarkSharedConfig: Preset;
/**
* **Remark Shared Configuration**
*
* @example
* export default remarkConfig({
* rules: [
* ['remark-lint-first-heading-level', 2],
* ['remarkValidateLinks', { repository: false }],
* ],
* })
*
* @see [@kitschpatrol/remark-config](https://github.com/kitschpatrol/shared-config/tree/main/packages/remark-config)
*
* @see [@kitschpatrol/shared-config](https://github.com/kitschpatrol/shared-config)
*/
declare function remarkConfig(options?: {
plugins?: PluggableList | undefined;
rules?: Array<[string, unknown]>;
settings?: Preset['settings'];
}): Preset;
//#endregion
export { type RemarkConfig, remarkSharedConfig as default, remarkSharedConfig, remarkConfig };