Skip to content

Commit d1e6582

Browse files
NicolappsConvex, Inc.
authored andcommitted
Enable better-tailwindcss/no-unnecessary-whitespace (#39007)
GitOrigin-RevId: 358ff5212e845c755334787e508eb77cfc915535
1 parent a8d167b commit d1e6582

File tree

14 files changed

+13
-15
lines changed

14 files changed

+13
-15
lines changed

npm-packages/dashboard-common/.eslintrc.cjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ module.exports = {
185185
"better-tailwindcss/enforce-consistent-line-wrapping": "off",
186186
// Disable enforce-consistent-class-order temporarily (will enable later + blame-ignore diff)
187187
"better-tailwindcss/enforce-consistent-class-order": "off",
188-
// Disable no-unnecessary-whitespace temporarily (will enable later + blame-ignore diff)
189-
"better-tailwindcss/no-unnecessary-whitespace": "off",
190188
"better-tailwindcss/no-unregistered-classes": [
191189
"error",
192190
{

npm-packages/dashboard-common/src/elements/DetailPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function DetailPanel({
7070
</div>
7171

7272
<div className="relative flex-1 px-4 py-6 sm:px-6">
73-
<div className="absolute inset-6 ">{detailContent}</div>
73+
<div className="absolute inset-6">{detailContent}</div>
7474
</div>
7575
</div>
7676
</div>

npm-packages/dashboard-common/src/features/data/components/Table/EditDocumentPanel/JavascriptDocumentsForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function JavascriptDocumentsForm({
126126
mode={mode}
127127
/>
128128
</div>
129-
<div className="flex max-h-40 w-full grow bg-background-secondary px-4 py-2 sm:px-6">
129+
<div className="flex max-h-40 w-full grow bg-background-secondary px-4 py-2 sm:px-6">
130130
<div className="float-right flex w-full grow items-center justify-end gap-4 whitespace-pre-line">
131131
{validationMessage && (
132132
<p

npm-packages/dashboard-common/src/features/data/components/Table/ViewDocument.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function ViewDocument({
130130
fieldSchema={documentValidator.value[column]}
131131
columnName={column}
132132
>
133-
<code className="ml-auto truncate text-right text-xs text-content-tertiary">
133+
<code className="ml-auto truncate text-right text-xs text-content-tertiary">
134134
{displayObjectFieldSchema(
135135
documentValidator.value[column],
136136
)}

npm-packages/dashboard-common/src/features/functionRunner/components/FunctionRunnerWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function FunctionRunnerWrapper({
117117
<FunctionIcon className="h-8 w-8" />
118118
</div>
119119

120-
<div className="ml-1 select-none flex-col items-center gap-1 whitespace-nowrap transition-all">
120+
<div className="ml-1 select-none flex-col items-center gap-1 whitespace-nowrap transition-all">
121121
Run functions
122122
<div className="flex w-full items-center gap-0.5 text-xs">
123123
Shortcut:

npm-packages/dashboard-common/src/features/schedules/components/crons/CronJobsContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ const statusTypes: {
284284
function LogStatusLine({ status }: { status: CronJobLog["status"] }) {
285285
const { textColor, Icon } = statusTypes[status.type];
286286
return (
287-
<div className={`flex items-center gap-1 ${textColor} `}>
287+
<div className={`flex items-center gap-1 ${textColor}`}>
288288
<Icon className="h-3.5 w-3.5" />
289289
<span className={`w-16 ${textColor}`}>
290290
{status.type === "success" ? (

npm-packages/dashboard-common/src/features/settings/components/EnvironmentVariables.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function DisplayEnvVar<T extends BaseEnvironmentVariable>({
337337
icon={showValue ? <EyeNoneIcon /> : <EyeOpenIcon />}
338338
/>
339339
{showValue ? (
340-
<span className=" truncate text-content-primary">
340+
<span className="truncate text-content-primary">
341341
{environmentVariable.value}
342342
</span>
343343
) : (

npm-packages/dashboard-common/src/lib/deploymentContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ function SelfHostedDisconnectOverlay({
621621
}) {
622622
return (
623623
<div
624-
className="absolute z-50 mt-[3.5rem] flex h-[calc(100vh-3.5rem)] w-full items-center justify-center"
624+
className="absolute z-50 mt-[3.5rem] flex h-[calc(100vh-3.5rem)] w-full items-center justify-center"
625625
style={{
626626
backdropFilter: "blur(0.5rem)",
627627
}}

npm-packages/dashboard/src/components/billing/Invoices.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function InvoicesTable({ invoices }: { invoices: InvoiceResponse[] }) {
3232
return (
3333
<div className="max-h-[30rem] overflow-y-auto rounded-sm border scrollbar">
3434
<table className="w-full">
35-
<thead className="sticky top-0 z-10 border-b bg-background-secondary ">
35+
<thead className="sticky top-0 z-10 border-b bg-background-secondary">
3636
<tr>
3737
<th className={cn(headerClass, "pl-2")}>Invoice</th>
3838
<th className={headerClass}>Issue Date</th>

npm-packages/dashboard/src/components/login/VHSLoginPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function VHSLoginPage({ returnTo }: { returnTo?: string }) {
3535

3636
function VHSTape({ isLoggingIn }: { isLoggingIn: boolean }) {
3737
return (
38-
<div className="z-20 flex w-full flex-col items-center rounded-b-md px-16 pb-8 ">
38+
<div className="z-20 flex w-full flex-col items-center rounded-b-md px-16 pb-8">
3939
<div
4040
className={classNames(
4141
"relative transition-all duration-150 ease-in-out",

0 commit comments

Comments
 (0)