Skip to content

Commit bb8c802

Browse files
committed
Run lint script from package.json
1 parent 4806fb1 commit bb8c802

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/upload-sarif.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# Runs the ESlint code analysis
1818
- name: Run ESLint
1919
# eslint exits 1 if it finds anything to report
20-
run: node_modules/.bin/eslint index.js -f node_modules/@microsoft/eslint-formatter-sarif/sarif.js -o results.sarif.json || true
20+
run: npm run lint || true
2121
- name: Expose report
2222
uses: actions/upload-artifact@v2
2323
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"lint": "eslint -f @microsoft/eslint-formatter-sarif -o output.sarif.json index.js",
8+
"lint": "eslint -f ./eslint-formatter/src/ESLint.Formatter -o results.sarif.json index.js",
99
"postinstall": "cd eslint-formatter/src/ESLint.Formatter && npm install"
1010
},
1111
"repository": {

0 commit comments

Comments
 (0)