styles-import-last

Reorder CSS/SCSS module imports to the end of React component import blocks.

6|5|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/podverse/podverse --skill styles-import-last
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: styles-import-last
Source: https://github.com/podverse/podverse/tree/main/.cursor/skills/styles-import-last
Command: npx skills add https://github.com/podverse/podverse --skill styles-import-last

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill ensures that styles (CSS/SCSS module) imports are always placed last in the import block to improve readability and maintain consistent styling across React components and pages.

Core Features & Use Cases

  • Import order enforcement: Move the styles import to the end of the import block while preserving other groupings.
  • Platform coverage: Works with .tsx and .jsx React files in standard web projects.
  • Use Case: When editing a component with multiple imports, apply this rule to keep style imports at the bottom for clarity.

Quick Start

Move the styles import to the end of the import block in your React component.

Frequently Asked Questions about styles-import-last

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce CSS module imports to appear last in React component files?

To enforce CSS module imports to appear last in React, you can automatically validate import blocks and move style imports to the end while preserving existing import groupings. This applies to both .tsx and .jsx files.

Why should styles be imported last in React components?

Styles should be imported last in React components to improve code readability and maintain consistent styling conventions. Placing CSS or SCSS module imports at the bottom of the import block keeps structural and logic imports distinct.

Does styles import ordering work with mixed import groups in .tsx and .jsx files?

Yes, styles import ordering works with mixed import groups in .tsx and .jsx files. It validates the import block, preserves your existing groupings, and ensures CSS or SCSS module imports are placed at the end without altering runtime behavior.

What is the best way to move SCSS module imports to the end of an import block?

The best way to move SCSS module imports to the end of an import block is to apply an automated import ordering rule. This shifts style imports to the bottom while keeping other import groups intact across your React components and pages.

Can I apply styles import ordering to both components and pages in a React project?

Yes, you can apply styles import ordering to both components and pages in a React project. The enforcement covers standard web project files with .tsx and .jsx extensions, ensuring consistent import ordering across the application.

Will enforcing styles import ordering alter the runtime behavior of my React application?

No, enforcing styles import ordering will not alter the runtime behavior of your React application. It strictly adjusts the visual order of imports within the block to place CSS or SCSS modules last, preserving all existing dependencies and execution logic.