From d93d6ceb47cb7dfc36a4e8c57d9f216f89cd08b0 Mon Sep 17 00:00:00 2001 From: Sam Tyler Date: Tue, 19 Nov 2024 13:03:52 +1030 Subject: [PATCH] MI-39 Remove explicit format steps The format checks are handled through ESLint. Now that ESLint is fixed up to be functioning properly, there is no more need for separate format scripts. --- .github/workflows/pull-request.yml | 25 ------------------------- package.json | 5 +---- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 34ce173..2456c2d 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -30,28 +30,3 @@ jobs: - name: Run Tests run: pnpm test - - code-quality: - name: 🕵️‍♀️ Code Quality - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} - - - name: Fetch target - run: git fetch origin ${{ github.event.pull_request.base.ref }} - - - uses: pnpm/action-setup@v4.0.0 - - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - cache: 'pnpm' - - - name: Install - run: pnpm install - - - name: Code Quality Check - run: pnpm format:check diff --git a/package.json b/package.json index d1f9c15..3fb67cf 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,7 @@ ], "scripts": { "test": "tsc && eslint .", - "build": "rollup -c", - "format": "prettier --ignore-path .prettierignore --check \"**/*.+(js|ts|json)\"", - "format:check": "pnpm run format", - "format:fix": "prettier --ignore-path .prettierignore --write \"**/*.+(js|ts|json)\"" + "build": "rollup -c" }, "dependencies": { "@eslint/compat": "^1.2.2",