diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 235ac57..223a090 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,56 +1,56 @@ name: Deploy to GitHub Pages on: - push: - branches: 'main' + push: + branches: "main" jobs: - build_site: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - # If you're using pnpm, add this step then change the commands and cache key below to use `pnpm` - # - name: Install pnpm - # uses: pnpm/action-setup@v3 - # with: - # version: 8 - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm - - - name: Install dependencies - run: npm install - - - name: build - env: - BASE_PATH: '' - run: | - npm run build - - - name: Upload Artifacts - uses: actions/upload-pages-artifact@v3 - with: - # this should match the `pages` option in your adapter-static options - path: 'build/' - - deploy: - needs: build_site - runs-on: ubuntu-latest - - permissions: - pages: write - id-token: write - - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - steps: - - name: Deploy - id: deployment - uses: actions/deploy-pages@v4 + build_site: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + # If you're using pnpm, add this step then change the commands and cache key below to use `pnpm` + # - name: Install pnpm + # uses: pnpm/action-setup@v3 + # with: + # version: 8 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm install + + - name: build + env: + BASE_PATH: "" + run: | + npm run build + + - name: Upload Artifacts + uses: actions/upload-pages-artifact@v3 + with: + # this should match the `pages` option in your adapter-static options + path: "build/" + + deploy: + needs: build_site + runs-on: ubuntu-latest + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9f7e19d..5b56e71 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,30 +1,30 @@ name: Liniting using Eslint on: - pull_request_target: - types: - - opened - - edited - - synchronize + pull_request_target: + types: + - opened + - edited + - synchronize env: - NODE_VERSION: 20.12.0 + NODE_VERSION: 20.12.0 jobs: - linting: - name: Linting - runs-on: ubuntu-latest - steps: - - name: Install NodeJS - uses: actions/setup-node@v4 - with: - node-version: ${{ env.NODE_VERSION }} + linting: + name: Linting + runs-on: ubuntu-latest + steps: + - name: Install NodeJS + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} - - name: Code Checkout - uses: actions/checkout@v4 + - name: Code Checkout + uses: actions/checkout@v4 - - name: Install Dependencies - run: npm ci + - name: Install Dependencies + run: npm ci - - name: Code Linting - run: npm run lint + - name: Code Linting + run: npm run lint diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml index a68fe88..81505f7 100644 --- a/.github/workflows/semantic-pr.yml +++ b/.github/workflows/semantic-pr.yml @@ -1,17 +1,17 @@ name: Semantic PR on: - pull_request_target: - types: - - opened - - edited - - synchronize + pull_request_target: + types: + - opened + - edited + - synchronize jobs: - main: - name: Validate PR title - runs-on: ubuntu-latest - steps: - - uses: amannn/action-semantic-pull-request@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b7b11fa --- /dev/null +++ b/.prettierrc @@ -0,0 +1,9 @@ +{ + "printWidth": 80, + "tabWidth": 4, + "singleQuote": false, + "jsxSingleQuote": false, + "semi": true, + "trailingComma": "all", + "arrowParens": "avoid" +} diff --git a/components.json b/components.json index 51d59d2..715303c 100644 --- a/components.json +++ b/components.json @@ -1,21 +1,21 @@ { - "$schema": "https://ui.shadcn.com/schema.json", - "style": "new-york", - "rsc": false, - "tsx": true, - "tailwind": { - "config": "tailwind.config.js", - "css": "src/index.css", - "baseColor": "zinc", - "cssVariables": true, - "prefix": "" - }, - "aliases": { - "components": "@/components", - "utils": "@/lib/utils", - "ui": "@/components/ui", - "lib": "@/lib", - "hooks": "@/hooks" - }, - "iconLibrary": "lucide" -} \ No newline at end of file + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "tailwind.config.js", + "css": "src/index.css", + "baseColor": "zinc", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + }, + "iconLibrary": "lucide" +} diff --git a/eslint.config.js b/eslint.config.js index 092408a..99b08b9 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,28 +1,39 @@ -import js from '@eslint/js' -import globals from 'globals' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' -import tseslint from 'typescript-eslint' +import js from "@eslint/js"; +import globals from "globals"; +import reactHooks from "eslint-plugin-react-hooks"; +import reactRefresh from "eslint-plugin-react-refresh"; +import prettier from "eslint-plugin-prettier"; +import tsParser from "@typescript-eslint/parser"; +import tsPlugin from "@typescript-eslint/eslint-plugin"; -export default tseslint.config( - { ignores: ['dist'] }, - { - extends: [js.configs.recommended, ...tseslint.configs.recommended], - files: ['**/*.{ts,tsx}'], - languageOptions: { - ecmaVersion: 2020, - globals: globals.browser, +export default [ + { + ignores: ["dist"], }, - plugins: { - 'react-hooks': reactHooks, - 'react-refresh': reactRefresh, + { + files: ["**/*.{ts,tsx}"], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + parser: tsParser, + }, + plugins: { + "react-hooks": reactHooks, + "react-refresh": reactRefresh, + prettier, + "@typescript-eslint": tsPlugin, + }, + rules: { + ...js.configs.recommended.rules, + ...tsPlugin.configs.recommended.rules, + ...reactHooks.configs.recommended.rules, + "react-refresh/only-export-components": [ + "warn", + { + allowConstantExport: true, + }, + ], + "prettier/prettier": "warn", // Prettier rule + }, }, - rules: { - ...reactHooks.configs.recommended.rules, - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - }, - }, -) +]; diff --git a/index.html b/index.html index 6a69944..6c8a6db 100644 --- a/index.html +++ b/index.html @@ -1,47 +1,64 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +