This directory contains scripts for maintaining code quality and consistency in the DesignPatternPedia project.
A linter that validates all pattern documentation files follow the template structure defined in template.mdx.
The linter ensures all MDX files in the following directories contain the required headers:
docs/behavioral/docs/creational/docs/structural/
Based on template.mdx, all pattern files must include:
## 🧩The problem## 🛠️Solutions### 🏛️Metaphors### 💡Real-world examples## ⚖️Pros and Cons## 🔍Applicability## 🧭Implementation Plan### 💻Code samples### 🎮Playground## 🔗Relations to other patterns## 📚Sources
npm run lint:mdx