From 4a8cfb8f1e83c99af0793fead425f5bd60f8de65 Mon Sep 17 00:00:00 2001 From: David LJ Date: Mon, 8 Jul 2024 23:49:32 +0200 Subject: [PATCH] ci: remove lint reporter --- .ci/Makefile | 2 +- .github/workflows/main.yml | 2 -- .github/workflows/reusable-lint.yml | 12 ------------ package.json | 14 -------------- pnpm-lock.yaml | 10 ---------- 5 files changed, 1 insertion(+), 39 deletions(-) diff --git a/.ci/Makefile b/.ci/Makefile index 5b65ad6f..331a6899 100644 --- a/.ci/Makefile +++ b/.ci/Makefile @@ -10,7 +10,7 @@ install: pnpm install --frozen-lockfile lint: - pnpm run lint --format eslint-formatter-multiple --max-warnings 0 + pnpm run lint --max-warnings 0 unit-test: pnpm run prebuild:font-subsets diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c87adcf6..e45783a8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,8 +23,6 @@ jobs: lint: name: Lint uses: ./.github/workflows/reusable-lint.yml - permissions: - checks: write style: name: Style uses: ./.github/workflows/reusable-style.yml diff --git a/.github/workflows/reusable-lint.yml b/.github/workflows/reusable-lint.yml index e66d0f7c..94afc8cd 100644 --- a/.github/workflows/reusable-lint.yml +++ b/.github/workflows/reusable-lint.yml @@ -8,11 +8,6 @@ on: required: false default: '' -# Add those permissions if reporting test results -# https://github.com/dorny/test-reporter/issues/229 -# permissions: -# checks: write - jobs: code: name: Code @@ -27,13 +22,6 @@ jobs: uses: ./.github/actions/setup - name: Run linter run: cd .ci && make lint - - name: Report results (as status check) - uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1 - if: (success() || failure()) && github.ref == 'refs/heads/main' - with: - name: Lint results - path: '*.xml' - reporter: java-junit commit-messages: name: Commit messages diff --git a/package.json b/package.json index d20d932c..d48f46f6 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,6 @@ "cypress": "13.13.0", "eslint": "8.57.0", "eslint-config-prettier": "9.1.0", - "eslint-formatter-multiple": "2.0.0", "execa": "9.3.0", "glob": "10.4.2", "husky": "9.0.11", @@ -122,19 +121,6 @@ "typescript": "5.4.5" }, "packageManager": "pnpm@9.4.0", - "eslint-formatter-multiple": { - "formatters": [ - { - "name": "stylish", - "output": "console" - }, - { - "name": "junit", - "output": "file", - "path": "junit-lint.xml" - } - ] - }, "repository": { "type": "git", "url": "https://github.com/davidlj95/website.git" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 40fc7499..89c9a65d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -162,9 +162,6 @@ importers: eslint-config-prettier: specifier: 9.1.0 version: 9.1.0(eslint@8.57.0) - eslint-formatter-multiple: - specifier: 2.0.0 - version: 2.0.0 execa: specifier: 9.3.0 version: 9.3.0 @@ -3795,9 +3792,6 @@ packages: peerDependencies: eslint: '>=7.0.0' - eslint-formatter-multiple@2.0.0: - resolution: {integrity: sha512-0EakEintis8YFn+UAw+fWp15pHBNgyaEMEPfYnQ1irIdSIHe0npNFMYkX7fEoEYw1otN1bDh1+ui+UeSsf90jw==} - eslint-scope@5.1.1: resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} engines: {node: '>=8.0.0'} @@ -12120,10 +12114,6 @@ snapshots: dependencies: eslint: 8.57.0 - eslint-formatter-multiple@2.0.0: - dependencies: - mkdirp: 1.0.4 - eslint-scope@5.1.1: dependencies: esrecurse: 4.3.0