From 8309c8d164537d8173cb516652e5ff691a9080dc Mon Sep 17 00:00:00 2001 From: acegoal07 <39467245+acegoal07@users.noreply.github.com> Date: Mon, 10 Aug 2026 14:00:34 +0100 Subject: [PATCH 1/6] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f5c436b..6c0aef0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,7 @@ jobs: with: node-version: latest - - name: lint + - name: Lint run: | npx eslint --fix . From f4774f7f3b122fc3cf3d97a46fdd85df94f1bdb4 Mon Sep 17 00:00:00 2001 From: acegoal07 <39467245+acegoal07@users.noreply.github.com> Date: Mon, 10 Aug 2026 14:01:10 +0100 Subject: [PATCH 2/6] Update createGroup.ts --- src/v2/groups/controllers/createGroup.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/v2/groups/controllers/createGroup.ts b/src/v2/groups/controllers/createGroup.ts index 93bdce0..60030f2 100644 --- a/src/v2/groups/controllers/createGroup.ts +++ b/src/v2/groups/controllers/createGroup.ts @@ -5,6 +5,7 @@ import { prisma } from '../../../lib/prisma'; import { existingResourceError, forbiddenError, + notFoundError, internalServerError } from '../../../lib/errorMessages'; import { validatePermissions } from '../../../lib/util'; From 0caa564132b95ce14de9b4563e2111b31a663b68 Mon Sep 17 00:00:00 2001 From: acegoal07 <39467245+acegoal07@users.noreply.github.com> Date: Mon, 10 Aug 2026 14:04:31 +0100 Subject: [PATCH 3/6] Update main.yml --- .github/workflows/main.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6c0aef0..193d85a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,11 +21,14 @@ jobs: - name: Setup Node uses: actions/setup-node@v7 with: - node-version: latest + node-version: 24 + cache: npm + + - name: Install dependencies + run: npm ci - name: Format - run: | - npx prettier --write . + run: npx prettier --write . - name: Commit formatting changes run: | @@ -35,8 +38,10 @@ jobs: git add . git commit -m "chore: apply formatting" || exit 0 git push + lint: name: lint + needs: format runs-on: ubuntu-latest steps: @@ -48,11 +53,14 @@ jobs: - name: Setup Node uses: actions/setup-node@v7 with: - node-version: latest + node-version: 24 + cache: npm + + - name: Install dependencies + run: npm ci - name: Lint - run: | - npx eslint --fix . + run: npx eslint --fix . - name: Commit linting changes run: | From f39a0e9eca6c3b05c629f7ac4de434cb644448e5 Mon Sep 17 00:00:00 2001 From: acegoal07 <39467245+acegoal07@users.noreply.github.com> Date: Mon, 10 Aug 2026 14:08:49 +0100 Subject: [PATCH 4/6] Update main.yml --- .github/workflows/main.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 193d85a..b360647 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,14 +21,11 @@ jobs: - name: Setup Node uses: actions/setup-node@v7 with: - node-version: 24 - cache: npm - - - name: Install dependencies - run: npm ci + node-version: latest - name: Format - run: npx prettier --write . + run: | + npx prettier --write . - name: Commit formatting changes run: | @@ -38,10 +35,8 @@ jobs: git add . git commit -m "chore: apply formatting" || exit 0 git push - lint: name: lint - needs: format runs-on: ubuntu-latest steps: @@ -53,14 +48,14 @@ jobs: - name: Setup Node uses: actions/setup-node@v7 with: - node-version: 24 - cache: npm + node-version: latest - - name: Install dependencies - run: npm ci + - name: Install linting tools + run: npm install --no-save eslint @eslint/js typescript typescript-eslint prettier eslint-config-prettier - name: Lint - run: npx eslint --fix . + run: | + npx eslint --fix . - name: Commit linting changes run: | From d783e0c68d90afb79532fa1b7099a5a6af7d7ef6 Mon Sep 17 00:00:00 2001 From: acegoal07 <39467245+acegoal07@users.noreply.github.com> Date: Mon, 10 Aug 2026 14:11:36 +0100 Subject: [PATCH 5/6] Update main.yml --- .github/workflows/main.yml | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b360647..1f49328 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,8 +8,8 @@ permissions: contents: write jobs: - format: - name: format + lint: + name: lint runs-on: ubuntu-latest steps: @@ -23,20 +23,15 @@ jobs: with: node-version: latest - - name: Format - run: | - npx prettier --write . + - name: Install linting tools + run: npm install --no-save eslint @eslint/js typescript typescript-eslint - - name: Commit formatting changes + - name: Lint run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - - git add . - git commit -m "chore: apply formatting" || exit 0 - git push - lint: - name: lint + npx eslint --fix . + format: + name: format + needs: lint runs-on: ubuntu-latest steps: @@ -50,18 +45,15 @@ jobs: with: node-version: latest - - name: Install linting tools - run: npm install --no-save eslint @eslint/js typescript typescript-eslint prettier eslint-config-prettier - - - name: Lint + - name: Format run: | - npx eslint --fix . + npx prettier --write . - - name: Commit linting changes + - name: Commit formatting changes run: | git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add . - git commit -m "chore: apply linting" || exit 0 + git commit -m "chore: apply formatting" || exit 0 git push From ff46098c8904a1a5f32cb144ca60c3f49c018e80 Mon Sep 17 00:00:00 2001 From: acegoal07 <39467245+acegoal07@users.noreply.github.com> Date: Mon, 10 Aug 2026 14:13:28 +0100 Subject: [PATCH 6/6] test complete --- eslint.config.mjs | 3 +-- package.json | 1 - src/v2/groups/controllers/createGroup.ts | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index b37018e..ff6a098 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -3,9 +3,8 @@ import js from '@eslint/js'; import { defineConfig } from 'eslint/config'; import tseslint from 'typescript-eslint'; -import eslintPrettier from 'eslint-config-prettier'; export default defineConfig({ files: ['src/**/*.{js,ts}'], - extends: [js.configs.recommended, tseslint.configs.recommended, eslintPrettier] + extends: [js.configs.recommended, tseslint.configs.recommended] }); diff --git a/package.json b/package.json index 5809491..7c0af25 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ "@eslint/js": "^10.0.1", "@types/node": "^26.1.2", "eslint": "^10.8.1", - "eslint-config-prettier": "^10.1.8", "prettier": "^3.9.6", "prisma": "^7.9.1", "tsup": "^8.5.1", diff --git a/src/v2/groups/controllers/createGroup.ts b/src/v2/groups/controllers/createGroup.ts index 60030f2..93bdce0 100644 --- a/src/v2/groups/controllers/createGroup.ts +++ b/src/v2/groups/controllers/createGroup.ts @@ -5,7 +5,6 @@ import { prisma } from '../../../lib/prisma'; import { existingResourceError, forbiddenError, - notFoundError, internalServerError } from '../../../lib/errorMessages'; import { validatePermissions } from '../../../lib/util';