@eslint-react/core / getJsxConfigFromContext
function getJsxConfigFromContext(context: RuleContext): {
jsx: 4 | JsxEmit;
jsxFactory: string;
jsxFragmentFactory: string;
jsxImportSource: string;
};Get JsxConfig from the rule context by reading compiler options
| Parameter | Type | Description |
|---|---|---|
context |
RuleContext |
The RuleContext |
{
jsx: 4 | JsxEmit;
jsxFactory: string;
jsxFragmentFactory: string;
jsxImportSource: string;
}JsxConfig derived from compiler options
| Name | Type |
|---|---|
jsx |
4 | JsxEmit |
jsxFactory |
string |
jsxFragmentFactory |
string |
jsxImportSource |
string |