Skip to content

Commit a01eaca

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] ESLint script parameters updated.
1 parent 1e06036 commit a01eaca

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/eslint.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,20 @@ jobs:
4545

4646
- name: Install ESLint
4747
run: |
48-
npm install [email protected]
49-
npm install @microsoft/[email protected]
50-
48+
npm install --include=dev [email protected]
49+
npm install --include=dev @microsoft/[email protected]
50+
- name: Test ESLint
51+
run: |
52+
npx --yes eslint --env-info
5153
- name: Run ESLint
52-
run: npx eslint .
53-
--config .eslintrc
54-
--ext .js,.jsx,.ts,.tsx
55-
--format @microsoft/eslint-formatter-sarif
56-
--output-file eslint-results.sarif
54+
run: >
55+
npx eslint .
56+
--config .eslintrc
57+
--max-warnings=0
58+
--ext .js,.jsx,.ts,.tsx
59+
--format @microsoft/eslint-formatter-sarif
60+
--output-file eslint-results.sarif
5761
continue-on-error: true
58-
5962
- name: Upload analysis results to GitHub
6063
uses: github/codeql-action/upload-sarif@v3
6164
with:

0 commit comments

Comments
 (0)