A stylelint processor that extracts CSS-in-JS objects from glamorous and related libraries for linting with stylelint. Version 0.3.0 is the latest stable release, with irregular maintenance cadence. It supports glamorous component factories, CSS attributes, and annotated object literals (via @css comments). Unlike other CSS-in-JS linters that rely on template literal extraction, this processor parses JavaScript object syntax directly, though it ignores certain formatting rules that don't apply to inline styles. Requires stylelint and a stylelint config (e.g., stylelint-config-standard).
npm install stylelint-processor-glamorousNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installation, configuration, and example of linting glamorous CSS-in-JS with stylelint.
Use a different processor for other libraries, e.g., stylelint-processor-styled-components.
No action needed; these rules will be silently skipped. No warning is shown.
Ensure annotation is directly before the brace, e.g., // @css
{ ... }Consider migrating to emotion or styled-components and use their respective stylelint processors.
Run npm install stylelint-processor-glamorous --save-dev.
Ensure the package is installed and the working directory is correct.
Check that the glamorous call is a valid object literal with CSS properties.
Ignore this rule; it is in the ignored rules list. Add to stylelint config if needed.