From 973a54e9ca4bef07e9349d53b5b50592666985c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 29 Sep 2024 18:45:42 +0200 Subject: [PATCH] Create stylelint-matcher.json (#209) --- .github/stylelint-matcher.json | 21 +++++++++++++++++++++ .github/workflows/front-end.yml | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/stylelint-matcher.json diff --git a/.github/stylelint-matcher.json b/.github/stylelint-matcher.json new file mode 100644 index 0000000..0a67fea --- /dev/null +++ b/.github/stylelint-matcher.json @@ -0,0 +1,21 @@ +{ + "problemMatcher": [ + { + "owner": "stylelint", + "pattern": [ + { + "regexp": "^([^\\s].*)$", + "file": 1 + }, + { + "regexp": "^\\s+((\\d+):(\\d+))?\\s+(✖|×)\\s+(.*)\\s{2,}(.*)$", + "line": 2, + "column": 3, + "message": 5, + "code": 6, + "loop": true + } + ] + } + ] +} diff --git a/.github/workflows/front-end.yml b/.github/workflows/front-end.yml index 70f85ab..1afec8c 100644 --- a/.github/workflows/front-end.yml +++ b/.github/workflows/front-end.yml @@ -131,7 +131,8 @@ jobs: # cache: "yarn" - name: "Setup problem matcher for Stylelint" - uses: "xt0rted/stylelint-problem-matcher@v1.3.0" + run: | + echo "::add-matcher::.github/stylelint-matcher.json" - name: "Enable strict engine checking" run: "npm config set engine-strict true"