# getcouped/eslint-plugin-react-google-translate architecture

> Architecture diagram of the GitHub repository getcouped/eslint-plugin-react-google-translate, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/getcouped/eslint-plugin-react-google-translate
- Repository: https://github.com/getcouped/eslint-plugin-react-google-translate

## Overview

This small ESLint plugin flags JSX text-node patterns that may break with Google Translate and React components that return text directly. A developer enables the plugin in ESLint; ESLint applies its rules to code and reports findings. The recommended configuration activates both rules. Relationships reflect the README and excerpts; no other runtime subsystems are present.

Main entry points: [`lib/index.js`](https://github.com/getcouped/eslint-plugin-react-google-translate/blob/main/lib/index.js) (Plugin Entry), [`lib/rules/no-conditional-text-nodes-with-siblings.js`](https://github.com/getcouped/eslint-plugin-react-google-translate/blob/main/lib/rules/no-conditional-text-nodes-with-siblings.js) (Conditional Text Rule), [`lib/rules/no-return-text-nodes.js`](https://github.com/getcouped/eslint-plugin-react-google-translate/blob/main/lib/rules/no-return-text-nodes.js) (Return Text Rule)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_developer(("Developer"))
node_eslint["ESLint"]
node_plugin["Plugin Entry<br/>[index.js]"]
node_conditional_rule["Conditional Text Rule"]
node_return_rule["Return Text Rule"]
node_findings["Lint Findings"]

node_developer -->|"configures"| node_plugin
node_eslint -->|"loads"| node_plugin
node_plugin -->|"registers"| node_conditional_rule
node_plugin -->|"registers"| node_return_rule
node_eslint -->|"applies"| node_conditional_rule
node_eslint -->|"applies"| node_return_rule
node_conditional_rule -->|"reports"| node_findings
node_return_rule -->|"reports"| node_findings

click node_plugin "https://github.com/getcouped/eslint-plugin-react-google-translate/blob/main/lib/index.js"
click node_conditional_rule "https://github.com/getcouped/eslint-plugin-react-google-translate/blob/main/lib/rules/no-conditional-text-nodes-with-siblings.js"
click node_return_rule "https://github.com/getcouped/eslint-plugin-react-google-translate/blob/main/lib/rules/no-return-text-nodes.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_developer,node_eslint,node_findings toneIndigo
class node_plugin,node_conditional_rule,node_return_rule toneTeal
```

## Components

### Other components

- **Developer**
- **ESLint**
- [Plugin Entry](https://github.com/getcouped/eslint-plugin-react-google-translate/blob/main/lib/index.js): `lib/index.js`
- [Conditional Text Rule](https://github.com/getcouped/eslint-plugin-react-google-translate/blob/main/lib/rules/no-conditional-text-nodes-with-siblings.js): `lib/rules/no-conditional-text-nodes-with-siblings.js`
- [Return Text Rule](https://github.com/getcouped/eslint-plugin-react-google-translate/blob/main/lib/rules/no-return-text-nodes.js): `lib/rules/no-return-text-nodes.js`
- **Lint Findings**

## Connections

- Developer → Plugin Entry: configures (evidence: `README.md`)
- ESLint → Plugin Entry: loads (evidence: `README.md`)
- Plugin Entry → Conditional Text Rule: registers (evidence: `lib/index.js`)
- Plugin Entry → Return Text Rule: registers (evidence: `lib/index.js`)
- ESLint → Conditional Text Rule: applies (evidence: `README.md`)
- ESLint → Return Text Rule: applies (evidence: `README.md`)
- Conditional Text Rule → Lint Findings: reports (evidence: `lib/rules/no-conditional-text-nodes-with-siblings.js`)
- Return Text Rule → Lint Findings: reports (evidence: `lib/rules/no-return-text-nodes.js`)
