Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Feb 25, 2022
1 parent eba776c commit 96978e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/util/resolveConfig.js
Expand Up @@ -68,7 +68,9 @@ const configUtils = {
},
rgb(property) {
if (!property.startsWith('--')) {
throw new Error("The rgb() helper requires a custom property name to be passed as the first argument.")
throw new Error(
'The rgb() helper requires a custom property name to be passed as the first argument.'
)
}

return ({ opacityValue }) => {
Expand All @@ -81,7 +83,9 @@ const configUtils = {
},
hsl(property) {
if (!property.startsWith('--')) {
throw new Error("The hsl() helper requires a custom property name to be passed as the first argument.")
throw new Error(
'The hsl() helper requires a custom property name to be passed as the first argument.'
)
}

return ({ opacityValue }) => {
Expand Down

0 comments on commit 96978e5

Please sign in to comment.