@glideapps/prettier-plugin-glide-tailwind
Advanced tools
Comparing version 2.2.13 to 2.2.14
@@ -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", |
13
test.js
@@ -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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72690
1116