Skip to content

⬅️ Back to Table of Contents

📄 BaseRuleReference

📊 Analysis Summary

Metric Count
🔧 Functions 1
📦 Imports 1
💠 JSX Elements 2
📐 Interfaces 1

📚 Table of Contents

🛠️ File Location:

📂 packages/website/src/theme/MDXComponents/BaseRuleReference.tsx

📦 Imports

Name Source
React react

JSX Elements

Component Type Props Children
sup element none text: "Taken with ❤️ from", , text: "."
a element href={href} text: "ESLint core"

Functions

BaseRuleReference({ baseRule, }: BaseRuleReferenceProps): React.ReactNode

Parameters:

  • { baseRule, } BaseRuleReferenceProps

Returns: React.ReactNode

Code
export function BaseRuleReference({
  baseRule,
}: BaseRuleReferenceProps): React.ReactNode {
  const href = `https://github.com/eslint/eslint/blob/main/docs/src/rules/${baseRule}.md`;

  return (
    <sup>
      Taken with ❤️ from <a href={href}>ESLint core</a>.
    </sup>
  );
}

Interfaces

BaseRuleReferenceProps

Interface Code
export interface BaseRuleReferenceProps {
  baseRule: string;
}

Properties

Name Type Optional Description
baseRule string not shown

Generated by Syntax Scribe