Skip to content

Commit

Permalink
Create stylelint-matcher.json (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Sep 29, 2024
1 parent 544d7ad commit 973a54e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/stylelint-matcher.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
]
}
3 changes: 2 additions & 1 deletion .github/workflows/front-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ jobs:
# cache: "yarn"
-
name: "Setup problem matcher for Stylelint"
uses: "xt0rted/[email protected]"
run: |
echo "::add-matcher::.github/stylelint-matcher.json"
-
name: "Enable strict engine checking"
run: "npm config set engine-strict true"
Expand Down

0 comments on commit 973a54e

Please sign in to comment.