diff --git a/package.json b/package.json index d2ec88c..97371ec 100644 --- a/package.json +++ b/package.json @@ -51,12 +51,12 @@ "eslint": "8.57.0", "eslint-config-prettier": "9.1.0", "eslint-import-resolver-custom-alias": "1.3.2", - "eslint-plugin-prettier": "5.1.3", + "eslint-plugin-prettier": "5.2.1", "eslint-plugin-simple-import-sort": "12.1.1", "jest": "29.7.0", "markdownlint-cli": "0.41.0", "postcss": "8.4.41", - "prettier": "3.2.5", + "prettier": "3.3.3", "tailwindcss": "3.4.9", "typescript": "5.5.4" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2274b26..6f3404e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,8 +52,8 @@ importers: specifier: 1.3.2 version: 1.3.2(eslint-plugin-import@2.29.1(@typescript-eslint/parser@8.0.1(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)) eslint-plugin-prettier: - specifier: 5.1.3 - version: 5.1.3(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.2.5) + specifier: 5.2.1 + version: 5.2.1(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.3) eslint-plugin-simple-import-sort: specifier: 12.1.1 version: 12.1.1(eslint@8.57.0) @@ -67,8 +67,8 @@ importers: specifier: 8.4.41 version: 8.4.41 prettier: - specifier: 3.2.5 - version: 3.2.5 + specifier: 3.3.3 + version: 3.3.3 tailwindcss: specifier: 3.4.9 version: 3.4.9 @@ -1122,8 +1122,8 @@ packages: '@typescript-eslint/parser': optional: true - eslint-plugin-prettier@5.1.3: - resolution: {integrity: sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==} + eslint-plugin-prettier@5.2.1: + resolution: {integrity: sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: '@types/eslint': '>=8.0.0' @@ -2133,8 +2133,8 @@ packages: resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} engines: {node: '>=6.0.0'} - prettier@3.2.5: - resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==} + prettier@3.3.3: + resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==} engines: {node: '>=14'} hasBin: true @@ -2437,8 +2437,8 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - synckit@0.8.8: - resolution: {integrity: sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==} + synckit@0.9.1: + resolution: {integrity: sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==} engines: {node: ^14.18.0 || >=16.0.0} tailwindcss@3.4.9: @@ -3920,12 +3920,12 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-prettier@5.1.3(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.2.5): + eslint-plugin-prettier@5.2.1(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.3): dependencies: eslint: 8.57.0 - prettier: 3.2.5 + prettier: 3.3.3 prettier-linter-helpers: 1.0.0 - synckit: 0.8.8 + synckit: 0.9.1 optionalDependencies: eslint-config-prettier: 9.1.0(eslint@8.57.0) @@ -5111,7 +5111,7 @@ snapshots: dependencies: fast-diff: 1.3.0 - prettier@3.2.5: {} + prettier@3.3.3: {} pretty-format@29.7.0: dependencies: @@ -5403,7 +5403,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - synckit@0.8.8: + synckit@0.9.1: dependencies: '@pkgr/core': 0.1.1 tslib: 2.6.3 diff --git a/src/utils/css-value.ts b/src/utils/css-value.ts index 3dca63b..895a909 100644 --- a/src/utils/css-value.ts +++ b/src/utils/css-value.ts @@ -281,7 +281,7 @@ export const normaliseUnitValue: NormaliseUnitValueFunction = ( if (safeValue.startsWith('var(')) { return safeAllowVar && isVar(safeValue) ? safeValue - : safeDefaultValue ?? safeDefaultNil + : (safeDefaultValue ?? safeDefaultNil) } const safeAllowCalc = isBoolean(allowCalc) ? allowCalc : false @@ -290,7 +290,7 @@ export const normaliseUnitValue: NormaliseUnitValueFunction = ( if (safeValue.startsWith('calc(')) { return safeAllowCalc && isCalc(safeValue) ? safeValue - : safeDefaultValue ?? safeDefaultNil + : (safeDefaultValue ?? safeDefaultNil) } const safeDefaultUnit = toStringValue(defaultUnit) ?? ''