File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 17
17
# Runs the ESlint code analysis
18
18
- name : Run ESLint
19
19
# 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
21
21
- name : Expose report
22
22
uses : actions/upload-artifact@v2
23
23
with :
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"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" ,
9
9
"postinstall" : " cd eslint-formatter/src/ESLint.Formatter && npm install"
10
10
},
11
11
"repository" : {
You can’t perform that action at this time.
0 commit comments