summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2022-01-02 20:21:46 -0800
committerRich Trott <rtrott@gmail.com>2022-01-05 07:42:19 -0800
commit55ceaec111e5b62af1e798b33fa8a3e8abd7f057 (patch)
tree9154d9309d1489d6eb76de2bed4a2a7316181754 /tools
parente7d4e6b680b6c2a0b0bd5a0e61f7abbe90617044 (diff)
downloadnode-new-55ceaec111e5b62af1e798b33fa8a3e8abd7f057.tar.gz
tools,benchmark,lib,test: enable no-case-declarations lint rule
PR-URL: https://github.com/nodejs/node/pull/41385 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/doc/json.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/doc/json.mjs b/tools/doc/json.mjs
index ee8480114d..1d2eab2e3c 100644
--- a/tools/doc/json.mjs
+++ b/tools/doc/json.mjs
@@ -128,7 +128,7 @@ export function jsonAPI({ filename }) {
switch (current.type) {
case 'ctor':
case 'classMethod':
- case 'method':
+ case 'method': {
// Each item is an argument, unless the name is 'return',
// in which case it's the return value.
const sig = {};
@@ -142,7 +142,7 @@ export function jsonAPI({ filename }) {
parseSignature(current.textRaw, sig);
current.signatures = [sig];
break;
-
+ }
case 'property':
// There should be only one item, which is the value.
// Copy the data up to the section.