Skip to content

Commit 56b8418

Browse files
committed
Ignore suppressed alerts
1 parent 5c9d953 commit 56b8418

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

.eslintignore

-4
This file was deleted.

.github/workflows/pr-checks.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@ jobs:
2828

2929
- name: Upload sarif
3030
uses: github/codeql-action/upload-sarif@v3
31-
# Only upload SARIF for the latest version of Node.js
31+
# Only upload SARIF for the latest version of Node.js
3232
if: matrix.node-types-version == 'current'
3333
with:
3434
sarif_file: eslint.sarif
3535
category: eslint
3636

37-
- name: Ensure the working directory is clean
38-
run: rm -f eslint.sarif
39-
4037
- name: Update version of @types/node
4138
if: matrix.node-types-version != 'current'
4239
env:

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ node_modules/.cache/
55
*.class
66
# macOS
77
.DS_Store
8+
# eslint sarif report
9+
eslint.sarif

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m",
1010
"lint": "eslint --report-unused-disable-directives --max-warnings=0 .",
1111
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
12-
"lint-ci": "eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
12+
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
1313
"removeNPMAbsolutePaths": "removeNPMAbsolutePaths . --force"
1414
},
1515
"ava": {

0 commit comments

Comments
 (0)