An ESLint plugin that enforces clean code practices in styled-components usage. Version 0.0.2 is the latest, with no known release cadence. It provides rules such as 'single-component-per-file' to enforce one styled component per file. Unlike other styled-components lint plugins, this focuses on structural cleanliness rather than syntax or style. No major changes or updates have been made since initial release.
npm install eslint-plugin-clean-styled-componentsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to enable the 'single-component-per-file' rule in ESLint config and an example that violates it.
Consider other mature styled-components lint plugins like eslint-plugin-styled-components-a11y or custom rules.
Use a more comprehensive plugin or extend with custom rule parsers.
Install plugin locally: npm install eslint-plugin-clean-styled-components --save-dev
Use numeric severity (0,1,2) or string ('off','warn','error'). Ensure rule name is kebab-case.