package.cjs.configs.scripts.jsdoc-builder.constants.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
/* eslint-disable @bigbinary/neeto/no-dangling-constants */
import { complement, startsWith } from "ramda";
export const REMARK_NODE_TYPES = {
HTML: "html",
PARAGRAPH: "paragraph",
CODE: "code",
HEADING: "heading",
TEXT: "text",
INLINE_CODE: "inlineCode",
};
export const BABEL_NODE_TYPES = { IDENTIFIER: "Identifier" };
export const SUBHEADING_PATTERN = { type: REMARK_NODE_TYPES.HEADING, depth: 2 };
export const HTML_PATTERN = { type: REMARK_NODE_TYPES.HTML };
export const IMG_PATTERN = {
type: REMARK_NODE_TYPES.HTML,
value: startsWith("