Skip to content

Commit

Permalink
Add type for new eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Dec 15, 2024
1 parent d5db6b2 commit 2ae903b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,21 @@
"superagent": "~10.1"
},
"devDependencies": {
"@eslint/js": "~9.13",
"@eslint/js": "~9.17",
"@types/fancy-log": "~2.0",
"@types/node": "~22.8",
"@types/node": "~22.10",
"@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.13",
"eslint": "~9.17",
"jshint": "~2.13",
"merge-stream": "~2.0",
"mocha": "~10.8",
"mocha": "~11.0",
"rimraf": "~6.0",
"run-scripts-util": "~1.3",
"typescript": "~5.6",
"typescript-eslint": "~8.12"
"typescript": "~5.7",
"typescript-eslint": "~8.18"
}
}
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)); //eslint-disable-line
throw new Error('[w3c-html-validator] Invalid results for reporter(): ' + String(<unknown>results));
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 2ae903b

Please sign in to comment.