From 9f0b1dfdbf26bfd3304be6631e78b94f96ec4b3a Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Tue, 17 Aug 2021 15:47:59 +0900 Subject: [PATCH] revert comma changes --- src/rules/no-unused-modules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rules/no-unused-modules.js b/src/rules/no-unused-modules.js index f0348773f5..094f75e3a8 100644 --- a/src/rules/no-unused-modules.js +++ b/src/rules/no-unused-modules.js @@ -236,7 +236,7 @@ const prepareImportsAndExports = (srcFiles, context) => { } const localImport = imports.get(key) || new Set(); value.declarations.forEach(({ importedSpecifiers }) => - importedSpecifiers.forEach(specifier => localImport.add(specifier)), + importedSpecifiers.forEach(specifier => localImport.add(specifier)) ); imports.set(key, localImport); }); @@ -552,13 +552,13 @@ module.exports = { if (exportStatement.whereUsed.size < 1) { context.report( node, - `exported declaration '${value}' not used within other modules`, + `exported declaration '${value}' not used within other modules` ); } } else { context.report( node, - `exported declaration '${value}' not used within other modules`, + `exported declaration '${value}' not used within other modules` ); } };