Repository navigation
FAQ
Sizing is part of how a component is placed in its caller's layout: w-full, size-8, h-10. Inner spacing, colour, type, borders, radius, shadows and motion change how the element looks, and that belongs to the component. The built-in list is in no-external-styling.
The rules read class names, and the visual list is made of Tailwind utility names. With another class system nothing matches, unless you add your own patterns with visual and builtins: false. one-component-per-file does not depend on Tailwind.
Put it in allow, anchored: allow: ["^bg-primary$"]. Or, better, move it into the component's variants, which is what the message asks for.
ESLint decides which files a rule applies to. Turn it on for the whole project as "error", and add a later block that lists the files that already break it as "warn" (Quick-Start). Remove a file from that list when it is fixed.
A module is allowed one. The rule reports each component after the first, in order of declaration.
The rule looks for functions and arrow functions that contain JSX, and for memo and forwardRef around them. A class component is not read, and neither is a component declared inside another function.
No. Moving a component to its own file, or a class into a variant, is a decision for you.
The plugin is published as @mrzr/eslint-plugin-component-ownership, so ESLint uses @mrzr as its default prefix. You can register it under any key.