From 1a1f65ec23f2e29776a1ae588389a5b241095037 Mon Sep 17 00:00:00 2001 From: hyper-neutrino Date: Tue, 16 Jul 2024 10:51:51 -0400 Subject: [PATCH] initial commit --- .github/workflows/eslint.yml | 23 +++++++++++++++++++ .github/workflows/format-code.yml | 21 +++++++++++++++++ .gitignore | 38 +++++++++++++++++++++++++++++++ .prettierrc | 15 ++++++++++++ .vscode/settings.json | 7 ++++++ README.md | 0 package.json | 6 +++++ pnpm-lock.yaml | 24 +++++++++++++++++++ 8 files changed, 134 insertions(+) create mode 100644 .github/workflows/eslint.yml create mode 100644 .github/workflows/format-code.yml create mode 100644 .gitignore create mode 100644 .prettierrc create mode 100644 .vscode/settings.json create mode 100644 README.md create mode 100644 package.json create mode 100644 pnpm-lock.yaml diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 0000000..2a7a256 --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,23 @@ +name: ESLint +on: + pull_request: + merge_group: + push: + branches: + - main +jobs: + eslint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 8.15.6 + - name: Install modules + run: pnpm install --frozen-lockfile + - name: ESLint Action + run: pnpm eslint \ No newline at end of file diff --git a/.github/workflows/format-code.yml b/.github/workflows/format-code.yml new file mode 100644 index 0000000..c1ebf04 --- /dev/null +++ b/.github/workflows/format-code.yml @@ -0,0 +1,21 @@ +name: Format Code +on: + pull_request: + merge_group: + push: + branches: + - main +jobs: + prettier: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + - name: Prettier Action + uses: creyD/prettier_action@v4.3 + with: + commit_message: "formatted code" + clean_node_folder: true + prettier_options: "--write {apps,packages}/**/*.*" \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..96fab4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# Dependencies +node_modules +.pnp +.pnp.js + +# Local env files +.env +.env.local +.env.development.local +.env.test.local +.env.production.local + +# Testing +coverage + +# Turbo +.turbo + +# Vercel +.vercel + +# Build Outputs +.next/ +out/ +build +dist + + +# Debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Misc +.DS_Store +*.pem diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..92391d0 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,15 @@ +{ + "printWidth": 120, + "tabWidth": 2, + "useTabs": false, + "semi": true, + "singleQuote": false, + "quoteProps": "as-needed", + "jsxSingleQuote": false, + "trailingComma": "all", + "bracketSpacing": true, + "bracketSameLine": true, + "arrowParens": "always", + "endOfLine": "lf", + "singleAttributePerLine": false +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..44a73ec --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "eslint.workingDirectories": [ + { + "mode": "auto" + } + ] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json new file mode 100644 index 0000000..a200299 --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "scripts": {}, + "devDependencies": { + "prettier": "^3.3.3" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..8ed2712 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,24 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + prettier: + specifier: ^3.3.3 + version: 3.3.3 + +packages: + + prettier@3.3.3: + resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==} + engines: {node: '>=14'} + hasBin: true + +snapshots: + + prettier@3.3.3: {}