npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

convention-lint

v1.0.7

Published

Convention Lint CLI — enforce naming conventions for files, folders, and HTML class/id from the command line

Readme

Convention Lint

Enforce consistent naming conventions for files, folders, and HTML/JSX/Vue/Svelte class & id attributes — with real-time diagnostics and Quick Fix.

Installation

Search "Convention Lint" in the VS Code Marketplace, or:

ext install Drangon-Knight.convention-lint

CLI

npm install -g convention-lint

Features

Real-time Diagnostics (Problems Panel)

Convention Lint reports violations directly in the Problems panel — just like ESLint or Stylelint.

  • Inline wavy underlines on violations
  • Detailed messages with violation reason
  • Severity levels: Error, Warning, Information, Hint, or Off

Quick Fix + Fix All

Click the lightbulb or press Ctrl+. on a violation to auto-convert:

  • myClassmy-class (kebab-case)
  • my-componentmyComponent (camelCase)
  • Fix All Convention Lint — fix every violation in one click

Disable Comments

<!-- convention-lint-disable -->
<div class="IgnoreThis"></div>
<!-- convention-lint-enable -->

<!-- convention-lint-disable-next-line -->
<div class="ThisLineOnly"></div>

Supported Naming Rules

| Rule | Pattern | Example | |------|---------|---------| | kebab-case | lowercase + hyphens | my-component | | camelCase | lowercase first, capitalize words | myComponent | | PascalCase | capitalize all words | MyComponent | | snake_case | lowercase + underscores | my_component | | lowercase | lowercase only, no separators | mycomponent |

Supported File Types

| Language | Attributes | |----------|-----------| | HTML | class, id, src | | Vue | class, :class, v-bind:class | | JSX / TSX | className | | Angular | class, [ngClass], [class.name] | | Svelte | class, class:name | | PHP | class, id (template syntax excluded) |

Atomic CSS Detection

Automatically skips 300+ utility-first CSS class names (df, jcc, w100px, bgFFFFFF, sm-dn, hover-o80, etc.)

Configuration

Create .convention.json in your project root:

{
  "convention": {
    "classNamingRule": "kebab-case",
    "idNamingRule": "camelCase",
    "fileNamingRule": "kebab-case",
    "folderNamingRule": "lowercase",
    "extensions": [".html", ".vue", ".jsx", ".tsx", ".svelte", ".php"],
    "ignoreAtomicCSS": true,
    "severity": "warning",
    "ignore": ["node_modules", ".git", "dist"],
    "ignorePatterns": ["**/*.test.*"]
  }
}

Per-Rule Severity

{
  "convention": {
    "severity": "warning",
    "classSeverity": "error",
    "idSeverity": "hint",
    "pathSeverity": "off"
  }
}

CLI Usage

convention-lint lint [dir]           # Scan folder
convention-lint lint --no-fail       # Warn only (CI mode)
convention-lint check <files...>     # Check specific files (pre-commit)
convention-lint watch [dir]          # Watch mode
convention-lint init                 # Create .convention.json

Commands

| Command | Shortcut | Description | |---------|----------|-------------| | Check & Save | Ctrl+S | Validate then save | | Check Folder | — | Scan a folder | | Check Workspace | — | Scan all files | | Toggle ON/OFF | — | Enable/disable |

Links