react-coding-standards
Originally fromlichens-innovation/skills
Installation
SKILL.md
React & TypeScript coding standards
This skill applies company coding standards expressed as Avoid (anti-patterns) and Prefer (recommended patterns) to in-code patterns only. For file and folder naming and structure, use react-files-structure-standards.
Source of truth (priority order)
When resolving standards, use this order:
- Project tooling: ESLint config (
eslint.config.js/.eslintrc*), TypeScript config (tsconfig.json,tsconfig.app.json). Runyarn lintornpm run lint; fix auto-fixable issues first. - Reference files in
references/(see table below) for Avoid/Prefer rules and examples. - Reference codebase (if provided): e.g. a frontend app under the same org — use it to infer naming, structure, and patterns (hooks returning data only,
FunctionComponent+ destructured props,*.utils.ts/*.store.ts, test style with Vitest or Jest).
Reference categories
Standards are defined in the references/ folder. Load these files when you need the exact Avoid/Prefer rules and examples: