Skip to content

Commit

Permalink
chore(deps): prettier v3.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sambauers committed Aug 11, 2024
1 parent b8b041a commit 13dde6b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
30 changes: 15 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/utils/css-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) ?? ''
Expand Down

0 comments on commit 13dde6b

Please sign in to comment.