From a6710987bf2d59d939de9f9fda6ff02bba19f5b4 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 30 Jul 2024 20:46:53 +0200 Subject: [PATCH] [TASK] Rename the CSS lint npm command (#1406) The name of the command should reflect the type of file that gets linted. This is a pre-patch to #1396. --- .github/workflows/ci.yml | 2 +- .gitlab/pipeline/jobs/javascript-lint.yml | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b37be6..67bc411 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,7 @@ jobs: fail-fast: false matrix: command: - - "style" + - "css" - "js" steps: - name: "Checkout" diff --git a/.gitlab/pipeline/jobs/javascript-lint.yml b/.gitlab/pipeline/jobs/javascript-lint.yml index d990078..b2f4fa5 100644 --- a/.gitlab/pipeline/jobs/javascript-lint.yml +++ b/.gitlab/pipeline/jobs/javascript-lint.yml @@ -8,4 +8,4 @@ style-lint: extends: .default-frontend stage: lint script: - - npm run ci:lint:style + - npm run ci:lint:css diff --git a/package.json b/package.json index 99341fd..499ee75 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "scripts": { "ci:lint:js": "eslint 'Resources/Public/**/*.js'", "fix:lint:js": "eslint 'Resources/Public/**/*.js' --quiet --fix", - "ci:lint:style": "stylelint Resources/Public/**/*.css", - "fix:lint:style": "stylelint Resources/Public/**/*.css --fix" + "ci:lint:css": "stylelint Resources/Public/**/*.css", + "fix:lint:css": "stylelint Resources/Public/**/*.css --fix" }, "devDependencies": { "eslint": "^9.2.0",