# akshata-2/javascript architecture

> Architecture diagram of the GitHub repository akshata-2/javascript, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/akshata-2/javascript
- Repository: https://github.com/akshata-2/javascript

## Overview

This repository provides ESLint shareable configurations: a general JavaScript configuration and a React-focused extension, plus whitespace-only variants. The main workflow is a developer selecting a config in ESLint; the config composes rule sets that ESLint applies to source files. The repository also documents a broader JavaScript style guide, but the supplied source evidence chiefly supports the configuration packages. The rule modules are indexed or excerpted; links for unsampled rule behavior are limited to the explicit config composition.

Main entry points: [`packages/eslint-config-airbnb-base/index.js`](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/index.js) (Base config), [`packages/eslint-config-airbnb/index.js`](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/index.js) (Airbnb config), [`packages/eslint-config-airbnb-base/whitespace.js`](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/whitespace.js) (Base whitespace), [`packages/eslint-config-airbnb/whitespace.js`](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/whitespace.js) (React whitespace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_base["Base ESLint config"]
  node_base_config["Base config<br/>[index.js]"]
  node_best_practices["Best practices<br/>[best-practices.js]"]
  node_errors["Error rules<br/>[errors.js]"]
  node_es6["ES6 rules<br/>[es6.js]"]
  node_imports["Import rules<br/>[imports.js]"]
  node_node_rules["Node rules<br/>[node.js]"]
  node_strict["Strict rules<br/>[strict.js]"]
  node_style["Style rules<br/>[style.js]"]
  node_variables["Variable rules<br/>[variables.js]"]
end

subgraph group_react["React ESLint config"]
  node_airbnb_config["Airbnb config<br/>[index.js]"]
  node_react_rules["React rules<br/>[react.js]"]
  node_a11y_rules["Accessibility rules<br/>[react-a11y.js]"]
  node_hooks_rules["Hooks rules<br/>[react-hooks.js]"]
end

subgraph group_whitespace["Whitespace variants"]
  node_base_whitespace["Base whitespace<br/>[whitespace.js]"]
  node_base_ws_list["Base whitespace list<br/>[whitespaceRules.js]"]
  node_base_ws_async["Base async fallback"]
  node_airbnb_whitespace["React whitespace<br/>[whitespace.js]"]
  node_airbnb_ws_list["React whitespace list<br/>[whitespaceRules.js]"]
  node_airbnb_ws_async["React async fallback"]
end

node_developer(("Developer"))
node_eslint["ESLint"]

node_developer -->|"runs lint"| node_eslint
node_eslint -.->|"loads config"| node_base_config
node_base_config -->|"extends rules"| node_best_practices
node_base_config -->|"extends rules"| node_errors
node_base_config -->|"extends rules"| node_node_rules
node_base_config -->|"extends rules"| node_style
node_base_config -->|"extends rules"| node_variables
node_base_config -->|"extends rules"| node_es6
node_base_config -->|"extends rules"| node_imports
node_base_config -->|"extends rules"| node_strict
node_developer -.->|"selects config"| node_eslint
node_eslint -.->|"loads config"| node_airbnb_config
node_airbnb_config -->|"extends config"| node_base_config
node_airbnb_config -->|"extends rules"| node_react_rules
node_airbnb_config -->|"extends rules"| node_a11y_rules
node_react_rules -->|"reads base rule"| node_style
node_eslint -.->|"loads variant"| node_base_whitespace
node_base_whitespace -->|"reads list"| node_base_ws_list
node_base_whitespace -->|"loads config"| node_base_config
node_base_whitespace -->|"runs fallback"| node_base_ws_async
node_eslint -.->|"loads variant"| node_airbnb_whitespace
node_airbnb_whitespace -->|"reads list"| node_airbnb_ws_list
node_airbnb_whitespace -->|"loads config"| node_airbnb_config
node_airbnb_whitespace -->|"runs fallback"| node_airbnb_ws_async

click node_base_config "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/index.js"
click node_best_practices "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/best-practices.js"
click node_errors "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/errors.js"
click node_es6 "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js"
click node_imports "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js"
click node_node_rules "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/node.js"
click node_strict "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/strict.js"
click node_style "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/style.js"
click node_variables "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js"
click node_airbnb_config "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/index.js"
click node_react_rules "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/rules/react.js"
click node_a11y_rules "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/rules/react-a11y.js"
click node_hooks_rules "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/rules/react-hooks.js"
click node_base_whitespace "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/whitespace.js"
click node_base_ws_list "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/whitespaceRules.js"
click node_base_ws_async "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/whitespace-async.js"
click node_airbnb_whitespace "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/whitespace.js"
click node_airbnb_ws_list "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/whitespaceRules.js"
click node_airbnb_ws_async "https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/whitespace-async.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_base_config,node_best_practices,node_errors,node_es6,node_imports,node_node_rules,node_strict,node_style,node_variables toneBlue
class node_airbnb_config,node_react_rules,node_a11y_rules,node_hooks_rules toneAmber
class node_base_whitespace,node_base_ws_list,node_base_ws_async,node_airbnb_whitespace,node_airbnb_ws_list,node_airbnb_ws_async toneMint
class node_developer,node_eslint toneIndigo
```

## Components

### Base ESLint config

- [Base config](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/index.js): `packages/eslint-config-airbnb-base/index.js`
- [Best practices](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/best-practices.js): `packages/eslint-config-airbnb-base/rules/best-practices.js`
- [Error rules](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/errors.js): `packages/eslint-config-airbnb-base/rules/errors.js`
- [ES6 rules](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js): `packages/eslint-config-airbnb-base/rules/es6.js`
- [Import rules](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js): `packages/eslint-config-airbnb-base/rules/imports.js`
- [Node rules](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/node.js): `packages/eslint-config-airbnb-base/rules/node.js`
- [Strict rules](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/strict.js): `packages/eslint-config-airbnb-base/rules/strict.js`
- [Style rules](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/style.js): `packages/eslint-config-airbnb-base/rules/style.js`
- [Variable rules](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js): `packages/eslint-config-airbnb-base/rules/variables.js`

### React ESLint config

- [Airbnb config](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/index.js): `packages/eslint-config-airbnb/index.js`
- [React rules](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/rules/react.js): `packages/eslint-config-airbnb/rules/react.js`
- [Accessibility rules](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/rules/react-a11y.js): `packages/eslint-config-airbnb/rules/react-a11y.js`
- [Hooks rules](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/rules/react-hooks.js): `packages/eslint-config-airbnb/rules/react-hooks.js`

### Whitespace variants

- [Base whitespace](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/whitespace.js): `packages/eslint-config-airbnb-base/whitespace.js`
- [Base whitespace list](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/whitespaceRules.js): `packages/eslint-config-airbnb-base/whitespaceRules.js`
- [Base async fallback](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb-base/whitespace-async.js): `packages/eslint-config-airbnb-base/whitespace-async.js`
- [React whitespace](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/whitespace.js): `packages/eslint-config-airbnb/whitespace.js`
- [React whitespace list](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/whitespaceRules.js): `packages/eslint-config-airbnb/whitespaceRules.js`
- [React async fallback](https://github.com/akshata-2/javascript/blob/master/packages/eslint-config-airbnb/whitespace-async.js): `packages/eslint-config-airbnb/whitespace-async.js`

### Other components

- **Developer**
- **ESLint**

## Connections

- Developer → ESLint: runs lint (evidence: `README.md`)
- ESLint → Base config: loads config
- Base config → Best practices: extends rules (evidence: `packages/eslint-config-airbnb-base/index.js`)
- Base config → Error rules: extends rules (evidence: `packages/eslint-config-airbnb-base/index.js`)
- Base config → Node rules: extends rules (evidence: `packages/eslint-config-airbnb-base/index.js`)
- Base config → Style rules: extends rules (evidence: `packages/eslint-config-airbnb-base/index.js`)
- Base config → Variable rules: extends rules (evidence: `packages/eslint-config-airbnb-base/index.js`)
- Base config → ES6 rules: extends rules (evidence: `packages/eslint-config-airbnb-base/index.js`)
- Base config → Import rules: extends rules (evidence: `packages/eslint-config-airbnb-base/index.js`)
- Base config → Strict rules: extends rules (evidence: `packages/eslint-config-airbnb-base/index.js`)
- Developer → ESLint: selects config
- ESLint → Airbnb config: loads config
- Airbnb config → Base config: extends config (evidence: `packages/eslint-config-airbnb/index.js`)
- Airbnb config → React rules: extends rules (evidence: `packages/eslint-config-airbnb/index.js`)
- Airbnb config → Accessibility rules: extends rules (evidence: `packages/eslint-config-airbnb/index.js`)
- React rules → Style rules: reads base rule (evidence: `packages/eslint-config-airbnb/rules/react.js`)
- ESLint → Base whitespace: loads variant
- Base whitespace → Base whitespace list: reads list (evidence: `packages/eslint-config-airbnb-base/whitespace.js`)
- Base whitespace → Base config: loads config (evidence: `packages/eslint-config-airbnb-base/whitespace.js`)
- Base whitespace → Base async fallback: runs fallback (evidence: `packages/eslint-config-airbnb-base/whitespace.js`)
- ESLint → React whitespace: loads variant
- React whitespace → React whitespace list: reads list (evidence: `packages/eslint-config-airbnb/whitespace.js`)
- React whitespace → Airbnb config: loads config (evidence: `packages/eslint-config-airbnb/whitespace.js`)
- React whitespace → React async fallback: runs fallback (evidence: `packages/eslint-config-airbnb/whitespace.js`)
