Sign In

@ausweis/prettier-config

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ausweis/prettier-config - npm Package Compare versions

Comparing version
0.2.31
to
0.2.32
+2
-0
CHANGELOG.md
# @ausweis/prettier-config
## 0.2.32
## 0.2.31
+9
-3

@@ -0,1 +1,2 @@

import { existsSync } from 'node:fs';
import { fileURLToPath } from 'url';

@@ -6,2 +7,7 @@

const tailwindFileUrl = new URL('./../tailwind/web.ts', import.meta.url);
const tailwindFileExists = existsSync(tailwindFileUrl);
console.info(`Tailwind config ${tailwindFileExists ? 'found' : 'not found'}.`);
/** @type { PrettierConfig } */

@@ -13,5 +19,5 @@ const config = {

arrowParens: 'avoid',
tailwindConfig: fileURLToPath(
new URL('../../tooling/tailwind/web.ts', import.meta.url)
),
tailwindConfig: tailwindFileExists
? fileURLToPath(tailwindFileUrl)
: undefined,
tailwindPreserveWhitespace: true,

@@ -18,0 +24,0 @@ tailwindFunctions: ['cn', 'cva', 'clsx'],

@@ -6,3 +6,3 @@ {

"private": false,
"version": "0.2.31",
"version": "0.2.32",
"type": "module",

@@ -20,3 +20,3 @@ "exports": {

"typescript": "^5.5.4",
"@ausweis/tsconfig": "0.2.31"
"@ausweis/tsconfig": "0.2.32"
},

@@ -23,0 +23,0 @@ "prettier": "@ausweis/prettier-config",