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 - npm Package Compare versions

Comparing version 2.2.13 to 2.2.14

4

lib/index.js

@@ -11,7 +11,7 @@ "use strict";

const twClassesSorter = new tailwind_classes_sorter_1.default({
nodeModulesPath: path_1.default.join(__dirname, '../node_modules')
nodeModulesPath: path_1.default.join(__dirname, "../../../node_modules"),
});
module.exports = {
parsers: parsers_1.default(twClassesSorter),
options: options_1.default
options: options_1.default,
};
{
"name": "@glideapps/prettier-plugin-glide-tailwind",
"version": "2.2.13",
"version": "2.2.14",
"description": "Formatting and sorting for glide tailwind classes",

@@ -5,0 +5,0 @@ "author": "Original author - Ari Seyhun | Modified by Bry Nguyen",

@@ -5,3 +5,9 @@ const fs = require('fs')

const prettierOptions = require('./prettierrc-mock-file.json')
/*
IMPORTANT:
The relative path to run test is broken. In order to run this test successfully, you must go and changes:
src/index.ts line: 7
to be:
nodeModulesPath: path.join(__dirname, '../node_modules')
*/
const unformatted = fs.readFileSync(

@@ -13,5 +19,4 @@ `${__dirname}/testDefault_unformatted.tsx`,

/*
Although it uses the "typescript" prettier parser, we will
end up using the jsx-attributes.ts node formatter due to the
method that we use for defining tailwind style:
Although it uses the "typescript" prettier parser, we will end up using the jsx-attributes.ts node formatter due to
the method that we use for defining tailwind style:
e.g.

@@ -18,0 +23,0 @@ tw="px-3 py-2 flex-shrink-0"

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