{"id":25599,"library":"folder-lint","title":"Folder Lint","description":"A library for linting folder structures, currently at version 1.0.5. Designed to enforce directory conventions in projects using custom rules. Differentiates from standard linters by focusing on file system layout rather than code style. Latest release is stable, with no recent updates. The package ships TypeScript types for use in TS projects. It is a small utility primarily configured via Node.js scripts.","status":"active","version":"1.0.5","language":"javascript","source_language":"en","source_url":"https://github.com/servicetitan/folder-lint","tags":["javascript","typescript"],"install":[{"cmd":"npm install folder-lint","lang":"bash","label":"npm"},{"cmd":"yarn add folder-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add folder-lint","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package supports both ESM and CJS; ESM recommended for modern projects.","wrong":"const folderLint = require('folder-lint')","symbol":"folderLint","correct":"import folderLint from 'folder-lint'"},{"note":"Named export available; no wrong pattern documented.","wrong":"import { checkStructure } from 'folder-lint'","symbol":"checkStructure","correct":"import { checkStructure } from 'folder-lint'"}],"quickstart":{"code":"import folderLint from 'folder-lint';\n\nconst result = folderLint.checkStructure('.', {\n  rules: {\n    'no-nested-dist': true,\n  },\n});\n\nif (result.errors.length > 0) {\n  console.error('Folder structure violation:', result.errors);\n} else {\n  console.log('Structure OK');\n}","lang":"typescript","description":"Demonstrates basic usage: check current directory against a custom rule that disallows nested 'dist' folders."},"warnings":[{"fix":"Always use kebab-case for rule names (e.g., 'no-nested-dist').","message":"Rule names are case-insensitive but use kebab-case in documentation; mixing case may cause unexpected behavior.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install folder-lint' and ensure import matches version syntax.","cause":"Package not installed or import path incorrect.","error":"Cannot find module 'folder-lint'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}