Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: enforce no unused trailing arguments tools directory #16953

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions tools/.eslintrc.yaml
@@ -0,0 +1,4 @@
rules:
# Variables
# http://eslint.org/docs/rules/#variables
no-unused-vars: [error, { args: 'after-used' }]
2 changes: 1 addition & 1 deletion tools/doc/html.js
Expand Up @@ -224,7 +224,7 @@ function altDocs(filename) {
const host = 'https://nodejs.org';
const href = (v) => `${host}/docs/latest-v${v.num}/api/${filename}.html`;

function li(v, i) {
function li(v) {
let html = `<li><a href="${href(v)}">${v.num}`;

if (v.lts)
Expand Down
2 changes: 1 addition & 1 deletion tools/eslint-rules/crypto-check.js
Expand Up @@ -54,7 +54,7 @@ module.exports = function(context) {
}
}

function reportIfMissingCheck(node) {
function reportIfMissingCheck() {
if (hasSkipCall) {
return;
}
Expand Down