outtrue weekly downloads statistics
By jakubkrehel · npm · ESLint plugins
Oxlint and ESLint rules that keep code on the design system: tokens, props, imports and composition.
outtrue has 173,376 recorded weekly downloads on npm, ranking #547 of 3,247 tracked listings.
About outtrue
outtrue
Oxlint rules that keep your code on your design system. Every error names the fix, so agents and people correct it in the same run.
<Button className="mt-[16px] rounded-full">Save</Button>
error design-system(no-raw-values): mt-[16px] hardcodes a length. 16px is mt-4 on the spacing scale.
error design-system(layout-only-classname): className on <Button> can only place it or arrange its children: margin, size, position and flex or grid layout. rounded-full restyles the component. Use a prop, or add a variant in @/components/ui/button.
The rules are written for React and Tailwind v4. The class rules read Tailwind class names and oxlint --fix writes v4 names. The import, component and attribute rules work with any styling. Oxlint >=1.92.0 <2 is supported.
npm i -D oxlint outtrue
{
"extends": ["./node_modules/outtrue/configs/recommended.json"],
"settings": { "design-system": { "primitives": "src/components/ui" } }
}
Set primitives to the folder that holds yours. The default is src/design-system, or @/design-system through your alias. A folder that does not exist is reported as an error.
First run
A codebase that has never seen the rules will break some of them. Let Oxlint rewrite what has one exact replacement, then read what is left:
npx oxlint --fix
To fix the rest over time, record it in a baseline so only new violations fail. See OPTIONS.md.
Configuration
Primitives are the components the design system owns, such as Button and Dialog. primitives is the folder that holds them, and alias maps an import prefix to a folder, so @/components/ui/button is read as src/components/ui/button. The default alias is @/ to src/.
{
"extends": ["./node_modules/outtrue/configs/recommended.json"],
"settings": {
"design-system": {
"alias": { "~/": "app/" },
"primitives": "~/components/ui"
}
}
}
A project with no src folder, where @/components/ui/button is components/ui/button, points the alias at the root:
{
"extends": ["./node_modules/outtrue/configs/recommended.json"],
"settings": {
"design-system": {
"alias": { "@/": "" },
"primitives": "@/components/ui"
}
}
}
Folders are read from the nearest package.json, so in a monorepo linted from its root one setting covers every package:
{
"extends": ["./node_modules/outtrue/configs/recommended.json"],
"settings": { "design-system": { "primitives": "src/components/ui" } }
}
That is apps/web/src/components/ui for apps/web and apps/docs/src/components/ui for apps/docs. A folder written from the repo root, such as apps/web/src/components/ui, still works and prints a deprecation notice once.
withBaseline, which applies the baseline, goes in oxlint.config.ts, which needs Node 22.18 or later. See OPTIONS.md.
There are three configs. base has the three rules to start with, recommended adds twelve more and all turns on all twenty-three.
Current list of rules:
no-raw-values: hardcoded lengths and colors in classes, attributes and inline styles. A color in adata-*attribute counts too, since it skips the tokens the same way.layout-only-classname: aclassNamethat restyles a primitive instead of placing it.one-way-imports: an import from a level above.no-rebuilt-primitives: a raw<button>,<input>or hand-built overlay where a primitive exists.no-duplicate-primitives: a component file named like a primitive, such asbilling/button.tsx.wrapped-libraries: a library the design system wraps, such as Base UI or Radix, imported outside it.index-in-sync: a component missing from the index or an index line whose file is gone.complete-composition: a composable component used without a required part.closed-variants: avariantorsizeprop typed as any string.semantic-tokens-only: a raw palette class such astext-gray-900outside the design system.no-deprecated: a deprecated component, prop or import path.primitive-naming: a primitive named after a page or a variant, such aspricing-card-pro.no-boolean-variants: a primitive prop such asisPrimaryorlargewhere avariantorsizevalue belongs.no-theme-overrides: a color set for one theme at the call site, such asdark:bg-gray-900.prefer-shorthand:w-4 h-4,h-screenand an arbitraryz-[n].no-template-classname: aclassNamebuilt with a template literal.icon-button-label: an icon-only button with noaria-labelortitle, or an empty one.no-cross-surface-imports: one part of the product importing a component from another.no-reach-in-selectors: a class that styles the inside of a primitive, such as[&_svg]:size-4.known-tokens: a color step the theme does not define, such asbg-gray-150.classname-passthrough: a primitive that acceptsclassNameand never applies it.no-important: the!modifier.no-inline-style: a fixed value in astyleobject.
Every rule has options for your folders, names and exceptions. They are in OPTIONS.md, along with how to adopt the rules in a codebase that already breaks them.
ESLint
Oxlint is the default, and the same rules run under ESLint 9.30 or later with a flat config and @typescript-eslint/parser 8.40 or later. They report the same messages in the same places.
npm i -D eslint @typescript-eslint/parser outtrue
Create eslint.config.mjs:
import parser from "@typescript-eslint/parser";
import { defineConfig } from "eslint/config";
import outtrue from "outtrue";…
Description from the npm listing.
- agents
- ai
- design-system
- eslint
- eslint-plugin
- lint
- oxlint
- oxlint-plugin
- tailwind
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (1)Similar npm ESLint plugins plugins
All 20 outtrue alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/outtrue. First seen Dec 6, 2026; last successful collection Dec 6, 2026. See the methodology.