Convention Lint is a CLI and VS Code extension that enforces naming conventions for files, folders, and HTML/JSX/Vue/Svelte class and id attributes. Current stable version is 1.0.7. It provides real-time diagnostics in the Problems panel, Quick Fix actions, and support for kebab-case, camelCase, PascalCase, snake_case, and lowercase rules. Key differentiators include atomic CSS detection for utility-first frameworks, per-rule severity settings, and disable comments. It competes with tools like ESLint naming plugins but focuses specifically on file and attribute naming.
npm install convention-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the CLI globally, creates a configuration file, and runs lint on a directory and specific files.
Add unknown utility classes to 'customAtomicClasses' in .convention.json.
Rename .conventionrc.json to .convention.json.
Add 'node_modules' to the 'ignore' array in .convention.json or run with '--ignore node_modules'.
Use exactly '<!-- convention-lint-disable -->' (no extra spaces).
Use 'convention-lint lint --severity off' instead of '--no-fail'.
Validate JSON with 'jsonlint .convention.json' and ensure only 'convention' top-level key.
Run 'npm install -g convention-lint' and verify with 'which convention-lint'.
Use 'import { lint } from 'convention-lint'' instead of 'import conventionLint from 'convention-lint''.Run 'npm install convention-lint --save-dev' in your project root.
No dependency data recorded yet.