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

@dhis2/config-lslint

v0.4.0

Published

Shareable ls-lint config for DHIS2 organisation

Readme

@dhis2/config-lslint

Shareable ls-lint config for DHIS2 organisation.

Unlike @dhis2/config-eslint/@dhis2/config-prettier/@dhis2/config-commitlint, ls-lint has no extends/import mechanism — it only reads .ls-lint.yml file(s) passed on the CLI, so this package can't be imported the same way the others are. Instead, reference it directly from node_modules via ls-lint's support for multiple --config flags (merged since v2.2.0), which it composes with your project's own .ls-lint.yml:

ls-lint --config node_modules/@dhis2/config-lslint/src/ls-lint.yml --config .ls-lint.yml

Add that as an npm script, e.g.:

// package.json
"scripts": {
    "lint:filenames": "ls-lint --config node_modules/@dhis2/config-lslint/src/ls-lint.yml --config .ls-lint.yml"
}

This keeps you on a live link to the shared ruleset — a pnpm update picks up future rule changes automatically — unlike copying the file, which forks it immediately and never updates again.

Adding project-local rules

Composition across configs is additive per distinct path key, not a deep merge: if your .ls-lint.yml declares rules for a directory the shared config doesn't already cover (e.g. a project-specific docs/ folder), both configs' rules apply together. But if you redeclare the same path key the shared config already uses (e.g. src), your version replaces the shared one for that key entirely rather than merging with it — the shared src rules would silently stop applying.

To extend or loosen the shared rules for a subdirectory that's already covered (e.g. allow a legacy src/legacy folder to keep non-kebab-case names), target a more specific nested path instead of repeating the shared key — ls-lint applies the most specific matching path, so the rest of src keeps the shared rules:

# .ls-lint.yml
ls:
    src/legacy:
        .js: regex:.*

Fallback: copying the file

If your project doesn't want a project-local .ls-lint.yml (or can't chain --config flags in its setup), you can still copy the ruleset in as a one-off:

cp node_modules/@dhis2/config-lslint/src/ls-lint.yml .ls-lint.yml

This still gets you a single source of truth with changelogged updates at copy-time — it just won't pick up future rule changes automatically the way the --config reference does, so prefer that instead where possible.