Skip to content

Commit

Permalink
refactor: autofix issues in 4 files
Browse files Browse the repository at this point in the history
Resolved issues in the following files with DeepSource Autofix:
1. lib/src/server/common/base/base.tsx
2. packages/shared/src/client/drawer-button/drawer-button.tsx
3. plopfile.js
4. scripts/rebrand.js
  • Loading branch information
deepsource-autofix[bot] authored May 5, 2024
1 parent e632683 commit 1e9c880
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/src/server/common/base/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function Base({
...props
}: BaseProps & OtherProps) {
const style = { ...props.style, width, height, "--c": color };
// @ts-ignore -- it is intensional
// @ts-expect-error -- it is intensional
if (dotRadius) style["--r"] = dotRadius;
const className = [props.className, loaderClass].filter(Boolean).join(" ");
return <div {...props} className={className} style={style} />;
Expand Down
6 changes: 3 additions & 3 deletions packages/shared/src/client/drawer-button/drawer-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export function DrawerButton({ open, setOpen }: DrawerButtonProps) {
<div
className={[styles.drawerBtn, "mb", open ? styles.open : ""].join(" ")}
onClick={() => setOpen(!open)}>
<div></div>
<div></div>
<div></div>
<div />
<div />
<div />
</div>
);
}
2 changes: 1 addition & 1 deletion plopfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function getNestedRouteActions(data) {
nestedRouteActions.push({
type: "add",
path: `${data.pkgPath}/src/declaration.d.ts`,
template: `declare module "*.module.css";\ndeclare module "*.module.scss";\n`,
template: 'declare module "*.module.css";\ndeclare module "*.module.scss";\n',
});
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/rebrand.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ try {

// craete commit
exec(
`git add . && git commit -m "Rebrand 💖 <a href="https://mayank-chaudhari.vercel.app" target="_blank">Mayank Kumar Chaudhari</a> [skip ci]" && turbo telemetry disable`,
'git add . && git commit -m "Rebrand 💖 <a href="https://mayank-chaudhari.vercel.app" target="_blank">Mayank Kumar Chaudhari</a> [skip ci]" && turbo telemetry disable',
);

0 comments on commit 1e9c880

Please sign in to comment.