Skip to content

Commit

Permalink
Allow error message to pass new stricter linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Oct 29, 2024
1 parent 6cc7064 commit d5db6b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,24 @@
"fancy-log": "~2.0",
"glob": "~11.0",
"slash": "~5.1",
"superagent": "~9.0"
"superagent": "~10.1"
},
"devDependencies": {
"@eslint/js": "~9.9",
"@eslint/js": "~9.13",
"@types/fancy-log": "~2.0",
"@types/node": "~22.2",
"@types/node": "~22.8",
"@types/superagent": "~8.1",
"add-dist-header": "~1.4",
"assert-deep-strict-equal": "~1.2",
"copy-file-util": "~1.2",
"copy-folder-util": "~1.1",
"eslint": "~9.9",
"eslint": "~9.13",
"jshint": "~2.13",
"merge-stream": "~2.0",
"mocha": "~10.7",
"mocha": "~10.8",
"rimraf": "~6.0",
"run-scripts-util": "~1.3",
"typescript": "~5.5",
"typescript-eslint": "~8.0"
"typescript": "~5.6",
"typescript-eslint": "~8.12"
}
}
2 changes: 1 addition & 1 deletion w3c-html-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const w3cHtmlValidator = {
};
const settings = { ...defaults, ...options };
if (typeof results?.validates !== 'boolean') //eslint-disable-line
throw new Error('[w3c-html-validator] Invalid results for reporter(): ' + String(results));
throw new Error('[w3c-html-validator] Invalid results for reporter(): ' + String(results)); //eslint-disable-line
const messages = results.messages ?? [];
const title = settings.title ?? results.title;
const status = results.validates ? chalk.green.bold('✔ pass') : chalk.red.bold('✘ fail');
Expand Down

0 comments on commit d5db6b2

Please sign in to comment.