Skip to content

Commit bc25768

Browse files
committed
Add ESLint SARIF formatter and results file
1 parent 54cb5d2 commit bc25768

3 files changed

Lines changed: 81 additions & 0 deletions

File tree

eslint-results.sarif

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"version": "2.1.0",
3+
"$schema": "http://json.schemastore.org/sarif-2.1.0-rtm.5",
4+
"runs": [
5+
{
6+
"tool": {
7+
"driver": {
8+
"name": "ESLint",
9+
"informationUri": "https://eslint.org",
10+
"rules": [],
11+
"version": "8.57.1"
12+
}
13+
},
14+
"artifacts": [
15+
{
16+
"location": {
17+
"uri": "file:///home/daretechie/DevProject/GitHub/github-actions-cicd-demo/src/app.js"
18+
}
19+
},
20+
{
21+
"location": {
22+
"uri": "file:///home/daretechie/DevProject/GitHub/github-actions-cicd-demo/src/utils.js"
23+
}
24+
},
25+
{
26+
"location": {
27+
"uri": "file:///home/daretechie/DevProject/GitHub/github-actions-cicd-demo/tests/app.test.js"
28+
}
29+
},
30+
{
31+
"location": {
32+
"uri": "file:///home/daretechie/DevProject/GitHub/github-actions-cicd-demo/tests/utils.test.js"
33+
}
34+
}
35+
],
36+
"results": []
37+
}
38+
]
39+
}

package-lock.json

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"express": "^5.1.0"
2626
},
2727
"devDependencies": {
28+
"@microsoft/eslint-formatter-sarif": "^3.1.0",
2829
"eslint": "^8.50.0",
2930
"eslint-config-standard": "^17.1.0",
3031
"eslint-plugin-import": "^2.32.0",

0 commit comments

Comments
 (0)