Commit d07c1b7 1 parent d2ebacf commit d07c1b7 Copy full SHA for d07c1b7
File tree 3 files changed +34
-2
lines changed
3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "problemMatcher" : [
3
+ {
4
+ "owner" : " stylelint" ,
5
+ "pattern" : [
6
+ {
7
+ "regexp" : " ^([^\\ s].*)$" ,
8
+ "file" : 1
9
+ },
10
+ {
11
+ "regexp" : " ^\\ s*(\\ d+):(\\ d+)\\ s+(\\ S+)\\ s+(.+?)\\ s+(\\ S+)$" ,
12
+ "line" : 1 ,
13
+ "column" : 2 ,
14
+ "message" : 4 ,
15
+ "code" : 5 ,
16
+ "loop" : true
17
+ }
18
+ ]
19
+ }
20
+ ]
21
+ }
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ concurrency:
21
21
jobs :
22
22
lint-check :
23
23
runs-on : " ubuntu-latest"
24
+ env :
25
+ STYLELINT_MATCHER_OWNER : " stylelint"
26
+ STYLELINT_MATCHER_PATH : " ./.github/problem-matchers/stylelint.json"
24
27
steps :
25
28
- uses : " actions/checkout@v4"
26
29
with :
29
32
with :
30
33
node-version : 22
31
34
- run : " npm clean-install"
32
- - run : " npm run lint:ci"
35
+ - name : " Set up Stylelint Problem Matcher"
36
+ run : " echo '::add-matcher::${{env.STYLELINT_MATCHER_PATH}}'"
37
+ - name : " Run `lint:check` script."
38
+ run : |-
39
+ # Disable ANSI color codes in Stylelint default "string" formatter
40
+ export NO_COLOR=1
41
+ npm run lint:check
42
+ - if : " always()"
43
+ name : " Remove Stylelint Problem Matcher"
44
+ run : " echo '::remove-matcher owner=${{env.STYLELINT_MATCHER_OWNER}}::'"
Original file line number Diff line number Diff line change 10
10
"lint:check" : " npm-run-all --sequential --continue-on-error lint:check:*" ,
11
11
"lint:check:css" : " stylelint src/**/*.css" ,
12
12
"lint:check:js" : " eslint . --max-warnings 0" ,
13
- "lint:ci" : " npm-run-all --sequential --continue-on-error lint:check:js \" lint:check:css -- --formatter github\" " ,
14
13
"lint:fix" : " npm-run-all --parallel --continue-on-error \" lint:check:* -- --fix\" " ,
15
14
"start" : " webpack serve --open --config webpack.dev.js" ,
16
15
"test" : " jest"
You can’t perform that action at this time.
0 commit comments