Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@glideapps/prettier-plugin-glide-tailwind

Package Overview
Dependencies
Maintainers
8
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glideapps/prettier-plugin-glide-tailwind

Formatting and sorting for glide tailwind classes

  • 4.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
8
Weekly downloads
 
Created
Source

Prettier Plugin Tailwind

Format long tailwind classes with Prettier plugin

Supports

  • CSS (@apply directive)
  • ReactJS (JSX, TSX)
  • twin.macro

Go from this:

<div
    tw="px-4 font-normal text-center w-32 h-32 object-cover mb-2 gp-sm:text-base gp-lg:text-lg gp-xl:(text-xl text-right)"
></div>

To this:

<div
    tw="px-4 font-normal text-center text-s mw-32 h-32 object-cover mb-2
       	gp-lg:text-lg
       	gp-xl:(text-xl text-right)"
></div>

This plugin reads your tailwind.config.js to sort tailwind classes in your project.

Installation

Install Prettier and the plugin into your project locally:

Glide engineers, please install this in /app

npm install --save-dev @glideapps/prettier-plugin-glide-tailwind

Testing locally

First thing to do is make sure you have modified the:

  • SET_CONFIG_PATH
  • NODE_CONFIG_PATH that are found in src/utils/testing-envs.ts
    yarn install
    yarn build
    yarn package
    npm run test

results will be saved to test_formatted.tsx

Keywords

FAQs

Package last updated on 04 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc