Lint your project structure against architecture rules. Currently at version 1.0.0-beta.1 with no stable release yet and uncertain release cadence. Defines allowed and disallowed imports per directory using glob patterns in .structlintrc configs. Differentiates by enabling per-folder configs and recursive linting, acting as an 'ESLint for folder structure'.
npm install structlintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs structlint, creates a config disallowing tests imports in src/, then runs lint.
Pin version and test before upgrading.
Always use paths relative to the .structlintrc file location.
Set recursive: false in config if only top-level is needed.
Run npx structlint instead, or install globally: npm install -g structlint
Create a .structlintrc file with a 'structure' array.
No dependency data recorded yet.