diff --git a/.github/labeler.yml b/.github/labeler.yml index 7be75728..79942cb9 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -3,18 +3,18 @@ enable: prs: true labels: - "chore": + 'chore': include: - '\bchore\b' - "feat": + 'feat': include: - '\bfeat\b' - "docs": + 'docs': include: - '\bdocs\b' - "fix": + 'fix': include: - '\bfix\b' - "test": + 'test': include: - '\btest\b' diff --git a/.prettierrc.json b/.prettierrc.json index d3c96355..3f584f60 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,4 +1,4 @@ { "printWidth": 120, "singleQuote": true -} \ No newline at end of file +} diff --git a/apps/web/.eslintrc.js b/apps/web/.eslintrc.js index 835dcb7a..19977e27 100644 --- a/apps/web/.eslintrc.js +++ b/apps/web/.eslintrc.js @@ -1,8 +1,8 @@ /** @type {import("eslint").Linter.Config} */ module.exports = { root: true, - extends: ["@sambad/eslint-config/next.js"], - parser: "@typescript-eslint/parser", + extends: ['@sambad/eslint-config/next.js'], + parser: '@typescript-eslint/parser', parserOptions: { project: true, }, diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css index f4bd77c0..4d750b87 100644 --- a/apps/web/app/globals.css +++ b/apps/web/app/globals.css @@ -1,9 +1,8 @@ :root { --max-width: 1100px; --border-radius: 12px; - --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", - "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", - "Fira Mono", "Droid Sans Mono", "Courier New", monospace; + --font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Oxygen Mono', + 'Ubuntu Monospace', 'Source Code Pro', 'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace; --foreground-rgb: 0, 0, 0; --background-start-rgb: 214, 219, 220; @@ -17,22 +16,11 @@ #0071ff33 160deg, transparent 360deg ); - --secondary-glow: radial-gradient( - rgba(255, 255, 255, 1), - rgba(255, 255, 255, 0) - ); + --secondary-glow: radial-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); --tile-start-rgb: 239, 245, 249; --tile-end-rgb: 228, 232, 233; - --tile-border: conic-gradient( - #00000080, - #00000040, - #00000030, - #00000020, - #00000010, - #00000010, - #00000080 - ); + --tile-border: conic-gradient(#00000080, #00000040, #00000030, #00000020, #00000010, #00000010, #00000080); --callout-rgb: 238, 240, 241; --callout-border-rgb: 172, 175, 176; @@ -47,24 +35,11 @@ --background-end-rgb: 0, 0, 0; --primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0)); - --secondary-glow: linear-gradient( - to bottom right, - rgba(1, 65, 255, 0), - rgba(1, 65, 255, 0), - rgba(1, 65, 255, 0.3) - ); + --secondary-glow: linear-gradient(to bottom right, rgba(1, 65, 255, 0), rgba(1, 65, 255, 0), rgba(1, 65, 255, 0.3)); --tile-start-rgb: 2, 13, 46; --tile-end-rgb: 2, 5, 19; - --tile-border: conic-gradient( - #ffffff80, - #ffffff40, - #ffffff30, - #ffffff20, - #ffffff10, - #ffffff10, - #ffffff80 - ); + --tile-border: conic-gradient(#ffffff80, #ffffff40, #ffffff30, #ffffff20, #ffffff10, #ffffff10, #ffffff80); --callout-rgb: 20, 20, 20; --callout-border-rgb: 108, 108, 108; @@ -87,12 +62,7 @@ body { body { color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); + background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb)); } a { diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index 3314e478..fdade3b2 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -1,12 +1,14 @@ -import type { Metadata } from "next"; -import { Inter } from "next/font/google"; -import "./globals.css"; +import { Inter } from 'next/font/google'; -const inter = Inter({ subsets: ["latin"] }); +import type { Metadata } from 'next'; + +import './globals.css'; + +const inter = Inter({ subsets: ['latin'] }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: 'Create Next App', + description: 'Generated by create next app', }; export default function RootLayout({ diff --git a/apps/web/app/page.module.css b/apps/web/app/page.module.css index 5c4b1e6a..999dc979 100644 --- a/apps/web/app/page.module.css +++ b/apps/web/app/page.module.css @@ -51,7 +51,9 @@ border-radius: var(--border-radius); background: rgba(var(--card-rgb), 0); border: 1px solid rgba(var(--card-border-rgb), 0); - transition: background 200ms, border 200ms; + transition: + background 200ms, + border 200ms; } .card span { @@ -98,7 +100,7 @@ .center::before, .center::after { - content: ""; + content: ''; left: 50%; position: absolute; filter: blur(45px); @@ -179,11 +181,7 @@ border-radius: 0; border: none; border-bottom: 1px solid rgba(var(--callout-border-rgb), 0.25); - background: linear-gradient( - to bottom, - rgba(var(--background-start-rgb), 1), - rgba(var(--callout-rgb), 0.5) - ); + background: linear-gradient(to bottom, rgba(var(--background-start-rgb), 1), rgba(var(--callout-rgb), 0.5)); background-clip: padding-box; backdrop-filter: blur(24px); } @@ -194,11 +192,7 @@ inset: auto 0 0; padding: 2rem; height: 200px; - background: linear-gradient( - to bottom, - transparent 0%, - rgb(var(--background-end-rgb)) 40% - ); + background: linear-gradient(to bottom, transparent 0%, rgb(var(--background-end-rgb)) 40%); z-index: 1; } } diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx index b01771f7..db077729 100644 --- a/apps/web/app/page.tsx +++ b/apps/web/app/page.tsx @@ -1,6 +1,7 @@ -import Image from "next/image"; -import styles from "./page.module.css"; -import { FirstDomainExampleScreen } from "@sambad/domains/first-domain"; +import { FirstDomainExampleScreen } from '@sambad/domains/first-domain'; +import Image from 'next/image'; + +import styles from './page.module.css'; export default function Home() { return ( diff --git a/apps/web/app/second/page.tsx b/apps/web/app/second/page.tsx index 4195e489..357ea283 100644 --- a/apps/web/app/second/page.tsx +++ b/apps/web/app/second/page.tsx @@ -1,6 +1,7 @@ -import Image from "next/image"; -import styles from "../page.module.css"; -import { SecondDomainExampleScreen } from "@sambad/domains/second-domain"; +import { SecondDomainExampleScreen } from '@sambad/domains/second-domain'; +import Image from 'next/image'; + +import styles from '../page.module.css'; export default function Second() { return ( diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index 9b925341..cf6bcd32 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -7,12 +7,6 @@ } ] }, - "include": [ - "next-env.d.ts", - "next.config.js", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts" - ], + "include": ["next-env.d.ts", "next.config.js", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "app/B.js", "app/A.js"], "exclude": ["node_modules"] } diff --git a/packages/core/sds/.eslintrc.js b/packages/core/sds/.eslintrc.js index 46464139..1580b27f 100644 --- a/packages/core/sds/.eslintrc.js +++ b/packages/core/sds/.eslintrc.js @@ -1,10 +1,10 @@ /** @type {import("eslint").Linter.Config} */ module.exports = { root: true, - extends: ["@repo/eslint-config/react-internal.js"], - parser: "@typescript-eslint/parser", + extends: ['@repo/eslint-config/react-internal.js'], + parser: '@typescript-eslint/parser', parserOptions: { - project: "./tsconfig.lint.json", + project: './tsconfig.lint.json', tsconfigRootDir: __dirname, }, }; diff --git a/packages/core/sds/README.md b/packages/core/sds/README.md index dc8ecec3..38d1900e 100644 --- a/packages/core/sds/README.md +++ b/packages/core/sds/README.md @@ -1 +1 @@ -# `sds` \ No newline at end of file +# `sds` diff --git a/packages/core/ui/.eslintrc.js b/packages/core/ui/.eslintrc.js index 46464139..1580b27f 100644 --- a/packages/core/ui/.eslintrc.js +++ b/packages/core/ui/.eslintrc.js @@ -1,10 +1,10 @@ /** @type {import("eslint").Linter.Config} */ module.exports = { root: true, - extends: ["@repo/eslint-config/react-internal.js"], - parser: "@typescript-eslint/parser", + extends: ['@repo/eslint-config/react-internal.js'], + parser: '@typescript-eslint/parser', parserOptions: { - project: "./tsconfig.lint.json", + project: './tsconfig.lint.json', tsconfigRootDir: __dirname, }, }; diff --git a/packages/core/ui/src/Button.tsx b/packages/core/ui/src/Button.tsx index be9117cd..65dad7a2 100644 --- a/packages/core/ui/src/Button.tsx +++ b/packages/core/ui/src/Button.tsx @@ -1,6 +1,6 @@ -"use client"; +'use client'; -import { HTMLAttributes, ReactNode } from "react"; +import { HTMLAttributes, ReactNode } from 'react'; interface ButtonProps extends HTMLAttributes { children: ReactNode; @@ -8,18 +8,9 @@ interface ButtonProps extends HTMLAttributes { appName: string; } -export const Button = ({ - children, - className, - appName, - ...rest -}: ButtonProps) => { +export const Button = ({ children, className, appName, ...rest }: ButtonProps) => { return ( - ); diff --git a/packages/core/ui/src/Code.tsx b/packages/core/ui/src/Code.tsx index 769d9711..a3efe222 100644 --- a/packages/core/ui/src/Code.tsx +++ b/packages/core/ui/src/Code.tsx @@ -1,9 +1,3 @@ -export function Code({ - children, - className, -}: { - children: React.ReactNode; - className?: string; -}): JSX.Element { +export function Code({ children, className }: { children: React.ReactNode; className?: string }): JSX.Element { return {children}; } diff --git a/packages/core/ui/src/index.ts b/packages/core/ui/src/index.ts index 5a7e9326..a2411c98 100644 --- a/packages/core/ui/src/index.ts +++ b/packages/core/ui/src/index.ts @@ -1,3 +1,3 @@ -export { Button } from "./Button"; -export { Card } from "./Card"; -export { Code } from "./Code"; +export { Button } from './Button'; +export { Card } from './Card'; +export { Code } from './Code'; diff --git a/packages/domains/.eslintrc.js b/packages/domains/.eslintrc.js index 5b9951b4..cb004ddd 100644 --- a/packages/domains/.eslintrc.js +++ b/packages/domains/.eslintrc.js @@ -1,10 +1,10 @@ /** @type {import("eslint").Linter.Config} */ module.exports = { root: true, - extends: ["@sambad/eslint-config/react-internal.js"], - parser: "@typescript-eslint/parser", + extends: ['@sambad/eslint-config/react-internal.js'], + parser: '@typescript-eslint/parser', parserOptions: { - project: "./tsconfig.lint.json", + project: './tsconfig.lint.json', tsconfigRootDir: __dirname, }, }; diff --git a/packages/domains/src/first-domain/features/components/FirstFeatureOfFirstDomainTestBox.tsx b/packages/domains/src/first-domain/features/components/FirstFeatureOfFirstDomainTestBox.tsx index 6f44a307..be1e36be 100644 --- a/packages/domains/src/first-domain/features/components/FirstFeatureOfFirstDomainTestBox.tsx +++ b/packages/domains/src/first-domain/features/components/FirstFeatureOfFirstDomainTestBox.tsx @@ -1,5 +1,6 @@ -import { Button } from "@sambad/ui"; -import { PropsWithChildren } from "react"; +import { Button } from '@sambad/ui'; + +import type { PropsWithChildren } from 'react'; interface FirstFeatureOfFirstDomainBoxProps { displayText: string; diff --git a/packages/domains/src/first-domain/features/components/FirstFeatureOfFirstDomainTestButton.tsx b/packages/domains/src/first-domain/features/components/FirstFeatureOfFirstDomainTestButton.tsx index 1c285625..9b87d8b8 100644 --- a/packages/domains/src/first-domain/features/components/FirstFeatureOfFirstDomainTestButton.tsx +++ b/packages/domains/src/first-domain/features/components/FirstFeatureOfFirstDomainTestButton.tsx @@ -1,9 +1,10 @@ -import { Button } from "@sambad/ui"; -import { HTMLAttributes, ReactNode } from "react"; -import { useFirstFeatureOfFirstDomainTestButton } from "../hooks/useFirstFeatureOfFirstDomainTestButton"; +import { Button } from '@sambad/ui'; -interface FirstFeaturedOfFirstDomainTestButtonProps - extends HTMLAttributes { +import { useFirstFeatureOfFirstDomainTestButton } from '../hooks/useFirstFeatureOfFirstDomainTestButton'; + +import type { HTMLAttributes, ReactNode } from 'react'; + +interface FirstFeaturedOfFirstDomainTestButtonProps extends HTMLAttributes { children?: ReactNode; } @@ -11,8 +12,7 @@ export const FirstFeatureOfFirstDomainTestButton = ({ children, ...rest }: FirstFeaturedOfFirstDomainTestButtonProps) => { - const { testText, handleChangeTestText } = - useFirstFeatureOfFirstDomainTestButton(); + const { testText, handleChangeTestText } = useFirstFeatureOfFirstDomainTestButton(); return (