{
  "id": 20258574,
  "title": "Code review shouldn't catch import rules: a React Native architecture ESLint enforces",
  "url": "https://urgent.news/2026/11/16/code-review-shouldnt-catch-import-rules-a-react-native-architecture",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-16T04:38:53.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/praveensingh/code-review-shouldnt-catch-import-rules-a-react-native-architecture-eslint-enforces-827"
  },
  "original_language": "en",
  "account": "Bareship enforces its architecture as lint errors using ESLint and dependency-cruiser. ESLint checks import directions through five layers, while dependency-cruiser examines the entire import graph in CI. Each rule originates from a real bug, such as hard-coded text, inconsistent text alignment, and React Compiler caches. Every error message provides a solution and explains the reasoning behind it, enabling teammates or AI agents to fix the code without seeking assistance. This architecture enforcement is the main focus of this article, which is the third part of Bareship's building process.",
  "summary": "Short answer: Bareship writes its architecture down as lint errors instead of a wiki page. ESLint checks that imports go one way through five layers and that features never import each other, and dependency-cruiser checks the whole graph again in CI. Other rules each came from a real bug: hard-coded text, left / right styles that don't mirror in right-to-left languages, and calls the React…",
  "key_points": [
    "Bareship enforces architecture using ESLint lint errors",
    "ESLint checks import directions through five layers",
    "Dependency-cruiser examines entire import graph in CI"
  ],
  "editors_take": "Automating architectural enforcement through linting removes the burden of manual code reviews and empowers developers or AI agents to resolve structural violations independently using built-in reasoning.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}