eslint react/jsx-curly-brace-presence

This commit is contained in:
zomars committed 2022-07-12 11:52:13 -06:00
1 parent dbfc1477aa
commit 7bcc5c4548
32 files changed
+57 -64

No files matched your search

@@ -19,7 +19,7 @@ export default function SelectGifInput(props: ISelectGifInput) {
<div className="flex flex-col items-start space-x-2 space-y-2">
{selectedGif && (
<div className="min-h-[200px]">
<img alt={"Selected Gif Image"} src={selectedGif} />
<img alt="Selected Gif Image" src={selectedGif} />
</div>
)}
<div className="flex">
@@ -129,7 +129,7 @@ const AppConfiguration = (props: IAppConfigurationProps) => {
{t("vital_app_trigger", { ns: "vital" })}
</label>
</div>
<div className={"mx-2 mt-0 inline-flex w-24 items-baseline"}>
<div className="mx-2 mt-0 inline-flex w-24 items-baseline">
<input
id="value"
type="text"
@@ -140,9 +140,7 @@ const AppConfiguration = (props: IAppConfigurationProps) => {
setSleepValue(Number(e.currentTarget.value));
setTouchedForm(true);
}}
className={
"pr-12shadow-sm mt-1 block w-full rounded-sm border border-gray-300 py-2 pl-6 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm"
}
className="pr-12shadow-sm mt-1 block w-full rounded-sm border border-gray-300 py-2 pl-6 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm"
/>
<p className="ml-2">
<strong>{t("vital_app_hours", { ns: "vital" })}</strong>
@@ -87,7 +87,7 @@ export const ConfirmDialog = (props: IConfirmDialogWipe) => {
<ClockIcon className="m-auto h-6 w-6"></ClockIcon>
</div>
<div className="pt-1">
<DialogHeader title={"Wipe My Calendar"} />
<DialogHeader title="Wipe My Calendar" />
<p className="mt-2 text-sm text-gray-500">
This will cancel all upcoming meetings from: <br />{" "}
<strong className="text-black">
@@ -111,7 +111,7 @@ export default function ZapierSetup(props: IZapierSetupProps) {
<li>You&apos;re set!</li>
</Trans>
</ol>
<Link href={"/apps/installed"} passHref={true}>
<Link href="/apps/installed" passHref={true}>
<Button color="secondary">{t("done")}</Button>
</Link>
</div>
@@ -121,7 +121,7 @@ export default function ZapierSetup(props: IZapierSetupProps) {
<div className="mt-5 ml-5">
<div>{t("install_zapier_app")}</div>
<div className="mt-3">
<Link href={"/apps/zapier"} passHref={true}>
<Link href="/apps/zapier" passHref={true}>
<Button>{t("go_to_app_store")}</Button>
</Link>
</div>
+1
View File
@@ -16,6 +16,7 @@ module.exports = {
"@next/next/no-img-element": "off",
"@next/next/no-html-link-for-pages": "off",
"jsx-a11y/role-supports-aria-props": "off", // @see https://github.com/vercel/next.js/issues/27989#issuecomment-897638654
"react/jsx-curly-brace-presence": ["error", { props: "never", children: "never" }],
},
overrides: [
{
@@ -10,7 +10,7 @@ import Row from "./Row";
const Html = (props: { children: React.ReactNode }) => (
<>
<RawHtml html={`<!doctype html>`} />
<RawHtml html="<!doctype html>" />
<html>{props.children}</html>
</>
);
@@ -103,7 +103,7 @@ export const BaseEmailHtml = (props: {
</td>
</Row>
</div>
<RawHtml html={`<!--[if mso | IE]></td></tr></table><![endif]-->`} />
<RawHtml html="<!--[if mso | IE]></td></tr></table><![endif]-->" />
</td>
</Row>
</div>
@@ -175,12 +175,12 @@ export const BaseEmailHtml = (props: {
</BaseTable>
</div>
)}
<RawHtml html={`<!--[if mso | IE]></td></tr></table><![endif]-->`} />
<RawHtml html="<!--[if mso | IE]></td></tr></table><![endif]-->" />
</td>
</Row>
</div>
<EmailBodyLogo />
<RawHtml html={`<!--[if mso | IE]></td></tr></table><![endif]-->`} />
<RawHtml html="<!--[if mso | IE]></td></tr></table><![endif]-->" />
</div>
</body>
</Html>
@@ -70,7 +70,7 @@ const EmailBodyLogo = () => {
</td>
</Row>
</div>
<CommentIE html={`</td></tr></table>`} />
<CommentIE html="</td></tr></table>" />
</td>
</Row>
</div>
@@ -60,7 +60,7 @@ const EmailCommonDivider = ({
{children}
</Row>
</div>
<RawHtml html={`<!--[if mso | IE]></td></tr></table><![endif]-->`} />
<RawHtml html="<!--[if mso | IE]></td></tr></table><![endif]-->" />
</td>
</Row>
</div>
+1 -3
View File
@@ -45,9 +45,7 @@ const EmailHead = ({ title = "" }) => {
}
`}
</style>
<RawHtml
html={`<!--[if mso]><noscript><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml></noscript><![endif]-->`}
/>
<RawHtml html="<!--[if mso]><noscript><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml></noscript><![endif]-->" />
<RawHtml
html={`<!--[if lte mso 11]><style type="text/css">.mj-outlook-group-fix { width:100% !important; }</style><![endif]-->`}
/>
+1 -1
View File
@@ -29,7 +29,7 @@ export const DropdownMenuContent = forwardRef<HTMLDivElement, DropdownMenuConten
<DropdownMenuPrimitive.Content
portalled={props.portalled}
{...props}
className={`w-50 relative z-10 mt-1 -ml-0 origin-top-right rounded-sm bg-white text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none`}
className="w-50 relative z-10 mt-1 -ml-0 origin-top-right rounded-sm bg-white text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"
ref={forwardedRef}>
{children}
</DropdownMenuPrimitive.Content>
+1 -1
View File
@@ -16,7 +16,7 @@ const Switch = (
<PrimitiveSwitch.Root className="h-[20px] w-[36px] rounded-sm bg-gray-400 p-0.5" {...primitiveProps}>
<PrimitiveSwitch.Thumb
id={id}
className={"block h-[16px] w-[16px] translate-x-0 bg-white transition-transform"}
className="block h-[16px] w-[16px] translate-x-0 bg-white transition-transform"
/>
</PrimitiveSwitch.Root>
{label && (