Skip to content

Commit

Permalink
fix stray lint warnings (redwoodjs#8416)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Walker-GM authored May 25, 2023
1 parent 9753b1d commit ace8c33
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,62 +183,64 @@ export default function ({ types: t }: { types: typeof types }): PluginObj {
t.identifier('span'),
t.identifier('setStatus')
),
[t.objectExpression([
t.objectProperty(
t.identifier('code'),
t.numericLiteral(2),
),
t.objectProperty(
t.identifier('message'),
t.logicalExpression(
'??',
t.optionalMemberExpression(
t.optionalCallExpression(
t.optionalMemberExpression(
[
t.objectExpression([
t.objectProperty(
t.identifier('code'),
t.numericLiteral(2)
),
t.objectProperty(
t.identifier('message'),
t.logicalExpression(
'??',
t.optionalMemberExpression(
t.optionalCallExpression(
t.optionalMemberExpression(
t.identifier('error'),
t.identifier('message'),
t.optionalMemberExpression(
t.identifier('error'),
t.identifier('message'),
false,
true
),
t.identifier('split'),
false,
true
),
t.identifier('split'),
false,
true
[t.stringLiteral('\n')],
false
),
[t.stringLiteral('\n')],
t.numericLiteral(0),
true,
false
),
t.numericLiteral(0),
true,
false
),
t.optionalMemberExpression(
t.optionalCallExpression(
t.optionalMemberExpression(
t.optionalCallExpression(
t.optionalMemberExpression(
t.identifier('error'),
t.identifier('toString'),
false,
true
t.optionalMemberExpression(
t.optionalCallExpression(
t.optionalMemberExpression(
t.optionalCallExpression(
t.optionalMemberExpression(
t.identifier('error'),
t.identifier('toString'),
false,
true
),
[],
false
),
[],
false
t.identifier('split'),
false,
true
),
t.identifier('split'),
false,
true
[t.stringLiteral('\n')],
false
),
[t.stringLiteral('\n')],
t.numericLiteral(0),
true,
false
),
t.numericLiteral(0),
true,
false
),
)
),
])]
)
)
),
]),
]
)
),
t.expressionStatement(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import { featureDisplayNames, featureIcons, featureColours } from './features'
export default function FeatureLink({ feature }: { feature: any }) {
const Icon = featureIcons.get(feature.type) || QuestionMarkCircleIcon
return (
<Card className="min-w-full px-4 py-2" decoration={feature.statusCode === 2 ? 'left' : undefined} decorationColor='red'>
<Card
className="min-w-full px-4 py-2"
decoration={feature.statusCode === 2 ? 'left' : undefined}
decorationColor="red"
>
<Flex className="space-x-3">
<Icon
className={`h-5 w-5 ${featureColours.get(feature.type)}`}
Expand Down

0 comments on commit ace8c33

Please sign in to comment.