Skip to content

PostCSS syntax for parsing styled-jsx, useful for stylelint

License

Notifications You must be signed in to change notification settings

foobaragency/postcss-styled-jsx

Folders and files

NameName
Last commit message
Last commit date
Mar 2, 2022
Mar 2, 2022
Mar 2, 2022
Mar 2, 2022
Mar 1, 2022
Mar 1, 2022
Mar 1, 2022
Mar 1, 2022
Feb 28, 2022
Apr 21, 2022
Aug 4, 2023
Feb 21, 2025

Repository files navigation

PostCSS styled-jsx Syntax

PostCSS syntax for parsing styled jsx

Disclaimers

  1. This package is intended to be used as a custom syntax for stylelint on React or Next.js projects using styled jsx. We have no intention of supporting all postcss post-processing features.
  2. We're not using the postcss-css-in-js from stylelint because that package is meant to be deprecated. See this issue.

Getting started

npm install --save-dev postcss-styled-jsx

Using with stylelint

// .stylelintrc.js
module.exports = {
  extends: ["stylelint-config-recommended"],
  customSyntax: "postcss-styled-jsx",
}