@tsquid/eslint-plugin
v0.2.0
Published
tsquid's UI rules and entity architecture checker for React + Relay + Astryx apps.
Maintainers
Readme
@tsquid/eslint-plugin
UI rules and an architecture checker for tsquid apps. Standards: docs/ui-standards.md.
// eslint.config.mjs
import tsquid from '@tsquid/eslint-plugin';
export default [...tsquid.configs.recommended];"lint": "eslint src --max-warnings 0 && tsquid-check-architecture"| Rule | Enforces |
| --- | --- |
| tsquid/module-order | imports → constants → exports → locals → StyleX |
| tsquid/constant-names | module constants in SHOUTING_SNAKE_CASE |
| tsquid/module-exports | named exports match the filename |
| tsquid/local-component-names | local components named Owner_Part |
| tsquid/render-only-components | no effects, requests or transforms in components |
| tsquid/no-router-link | components use Astryx or the app preloading link |
tsquid-check-architecturechecks the import graph undersrc/components: entity directories,__private__and feature-folder boundaries, and that internal modules have real consumers.recommendedalso enablesreact-hooks/rules-of-hooksandreact-hooks/exhaustive-deps, and exemptssrc/main.tsxfrom the ordering and naming rules.
