Skip to content

Commit

Permalink
chore(deps): prettier v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sambauers committed Nov 23, 2023
1 parent 336ac3c commit 2b2cfb5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"jest": "29.7.0",
"markdownlint-cli": "0.37.0",
"postcss": "8.4.31",
"prettier": "3.0.3",
"prettier": "3.1.0",
"tailwindcss": "3.3.3",
"typescript": "5.2.2"
}
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

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

44 changes: 22 additions & 22 deletions src/utils/css-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,17 +341,17 @@ export const normaliseUnitValue: NormaliseUnitValueFunction = (
const safeUpperLimit: false | Required<Limit> = isNumber(upperLimit)
? { limit: upperLimit, inclusive: true, adjustBy: 1 }
: isLimit(upperLimit)
? {
limit: upperLimit.limit,
inclusive: isBoolean(upperLimit.inclusive)
? upperLimit.inclusive
: true,
adjustBy:
isNumber(upperLimit.adjustBy) && upperLimit.adjustBy !== 0
? upperLimit.adjustBy
: 1,
}
: false
? {
limit: upperLimit.limit,
inclusive: isBoolean(upperLimit.inclusive)
? upperLimit.inclusive
: true,
adjustBy:
isNumber(upperLimit.adjustBy) && upperLimit.adjustBy !== 0
? upperLimit.adjustBy
: 1,
}
: false

// Set the evaluated value within the upper limit
if (safeUpperLimit) {
Expand All @@ -369,17 +369,17 @@ export const normaliseUnitValue: NormaliseUnitValueFunction = (
const safeLowerLimit: false | Required<Limit> = isNumber(lowerLimit)
? { limit: lowerLimit, inclusive: true, adjustBy: 1 }
: isLimit(lowerLimit)
? {
limit: lowerLimit.limit,
inclusive: isBoolean(lowerLimit.inclusive)
? lowerLimit.inclusive
: true,
adjustBy:
isNumber(lowerLimit.adjustBy) && lowerLimit.adjustBy !== 0
? lowerLimit.adjustBy
: 1,
}
: false
? {
limit: lowerLimit.limit,
inclusive: isBoolean(lowerLimit.inclusive)
? lowerLimit.inclusive
: true,
adjustBy:
isNumber(lowerLimit.adjustBy) && lowerLimit.adjustBy !== 0
? lowerLimit.adjustBy
: 1,
}
: false

// Set the evaluated value within the lower limit
if (safeLowerLimit) {
Expand Down
8 changes: 4 additions & 4 deletions src/utils/lodash-transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ export const nameModifier = <T extends RecordAny>(
const safeSilentModifier = isString(silentModifier)
? silentModifier
: safeName === '' // If there is no name, don't silence the modifier
? ''
: '1'
? ''
: '1'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
return (result: T, value: any, modifier: string) => {
const property =
String(modifier) === safeSilentModifier
? safeName
: safeName === ''
? modifier
: `${safeName}-${modifier}`
? modifier
: `${safeName}-${modifier}`

result[property as keyof T] = isPlainObject(value)
? { name, originalModifier: modifier, ...value }
Expand Down

0 comments on commit 2b2cfb5

Please sign in to comment.