Skip to content

Commit

Permalink
chore: formatted code ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
MathurAditya724 committed Mar 19, 2024
1 parent a80b4db commit 18f4cf0
Show file tree
Hide file tree
Showing 14 changed files with 467 additions and 467 deletions.
70 changes: 35 additions & 35 deletions .eslintrc.base.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
}
]
}
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
}
]
}
64 changes: 32 additions & 32 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"ignorePatterns": ["**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
],
"extends": ["./.eslintrc.base.json"]
}
{
"ignorePatterns": ["**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
],
"extends": ["./.eslintrc.base.json"]
}
10 changes: 5 additions & 5 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
"{apps,packages,tools}/**/*.{js,jsx,ts,tsx,json}": [
(files) => `pnpm dlx @biomejs/biome check --apply ${files.join(" ")}`,
],
};
module.exports = {
"{apps,packages,tools}/**/*.{js,jsx,ts,tsx,json}": [
(files) => `pnpm dlx @biomejs/biome check --apply ${files.join(" ")}`,
],
};
6 changes: 3 additions & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode"]
}
{
"recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode"]
}
100 changes: 50 additions & 50 deletions apps/sandbox/src/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
import { css } from "hono/css";
import type { FC } from "hono/jsx";

const cardLayout = css`
padding: 1rem;
border-radius: 0.5rem;
border: 1px solid transparent;
&:hover {
border: 1px solid rgb(209 213 219);
background-color: rgb(243 244 246);
transition: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
&:hover {
background-color: rgba(38, 38, 38, 0.3);
border: 1px solid rgb(38 38 38);
}
}
`;

const labelClass = css`
font-size: 24px;
font-weight: 600;
margin-bottom: 0.75rem;
@media (prefers-color-scheme: dark) {
color: white;
}
`;

const valueClass = css`
font-size: 14px;
opacity: 0.5;
@media (prefers-color-scheme: dark) {
color: white;
}
`;

export type Card = { label: string; value: string | number };

const Card: FC<Card> = ({ label, value }: Card) => {
return (
<div class={cardLayout}>
<div class={labelClass}>{label}</div>
<div class={valueClass}>{value}</div>
</div>
);
};

export default Card;
import { css } from "hono/css";
import type { FC } from "hono/jsx";

const cardLayout = css`
padding: 1rem;
border-radius: 0.5rem;
border: 1px solid transparent;
&:hover {
border: 1px solid rgb(209 213 219);
background-color: rgb(243 244 246);
transition: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
&:hover {
background-color: rgba(38, 38, 38, 0.3);
border: 1px solid rgb(38 38 38);
}
}
`;

const labelClass = css`
font-size: 24px;
font-weight: 600;
margin-bottom: 0.75rem;
@media (prefers-color-scheme: dark) {
color: white;
}
`;

const valueClass = css`
font-size: 14px;
opacity: 0.5;
@media (prefers-color-scheme: dark) {
color: white;
}
`;

export type Card = { label: string; value: string | number };

const Card: FC<Card> = ({ label, value }: Card) => {
return (
<div class={cardLayout}>
<div class={labelClass}>{label}</div>
<div class={valueClass}>{value}</div>
</div>
);
};

export default Card;
102 changes: 51 additions & 51 deletions apps/sandbox/src/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
import { Style, css } from "hono/css";
import type { FC } from "hono/jsx";

const globalClasses = css`
font-family: "Inter", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
font-variation-settings: "slnt" 0;
background: linear-gradient(to bottom, transparent, rgb(255, 255, 255))
rgb(214, 219, 220);
margin: 0;
@media (prefers-color-scheme: dark) {
background: linear-gradient(to bottom, transparent, rgb(0, 0, 0))
rgb(0, 0, 0);
}
`;

const mainClass = css`
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1024;
margin: 0 auto;
flex-direction: column;
padding: 6rem;
height: 79vh;
`;

const Layout: FC = (props) => {
return (
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap"
rel="stylesheet"
/>
<Style />
</head>
<body class={globalClasses}>
<main class={mainClass}>{props.children}</main>
</body>
</html>
);
};

export default Layout;
import { Style, css } from "hono/css";
import type { FC } from "hono/jsx";

const globalClasses = css`
font-family: "Inter", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
font-variation-settings: "slnt" 0;
background: linear-gradient(to bottom, transparent, rgb(255, 255, 255))
rgb(214, 219, 220);
margin: 0;
@media (prefers-color-scheme: dark) {
background: linear-gradient(to bottom, transparent, rgb(0, 0, 0))
rgb(0, 0, 0);
}
`;

const mainClass = css`
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1024;
margin: 0 auto;
flex-direction: column;
padding: 6rem;
height: 79vh;
`;

const Layout: FC = (props) => {
return (
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap"
rel="stylesheet"
/>
<Style />
</head>
<body class={globalClasses}>
<main class={mainClass}>{props.children}</main>
</body>
</html>
);
};

export default Layout;
Loading

0 comments on commit 18f4cf0

Please sign in to comment.