src/index.ts

markuplint · packages/@markuplint/react-spec/src/index.ts · typescript · MIT
ui, UI / Frontend

Defines React JSX validation attributes for markuplint.

// Source: https://github.com/markuplint/markuplint | License: MIT | Copyright 2017-2024 Yusuke Hirao
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * @module @markuplint/react-spec
 *
 * Provides React-specific extended specifications for markuplint.
 * Defines React's JSX global attributes (such as `key`, `ref`,
 * `dangerouslySetInnerHTML`, and hydration/contentEditable warning
 * suppression flags) as well as element-level attribute overrides
 * for controlled and uncontrolled form components (`input`, `select`,
 * `textarea`).
 */

import type { ExtendedSpec } from '@markuplint/ml-spec';

/**
 * The React framework extended specification.
 *
 * Registers global JSX attributes available on every element and
 * provides per-element attribute definitions for React'

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key