Skip to content

Commit

Permalink
Failed validation example
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Dec 2, 2021
1 parent 05d4080 commit 0e28ca7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ jobs:

- name: Run postinstall scripts
run: npm rebuild && npm run prepare --if-present

- name: Lint
run: npm run lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"lint": "eslint .",
"lint": "npm run build && eslint -f dist/index.js .",
"pretest": "npm run lint",
"prepare": "npm run build"
},
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ const format: ESLint.Formatter['format'] = (results: ESLint.LintResult[], data?:

startGroup('ESLint Annotations');

let result = '';
const unhook = hookStdout((_orig, s, encoding, cb): boolean => {
var result = '';
let unhook = hookStdout((_orig, s, encoding, cb): boolean => {
const callback = typeof encoding === 'function' ? encoding : cb;

result += s.toString();
Expand Down

0 comments on commit 0e28ca7

Please sign in to comment.