From 79aefcd2f5a2c0a1853aa9fe63d30798a90ff623 Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:56:48 +0200 Subject: [PATCH] Fix config comments --- react-scanner.config.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/react-scanner.config.js b/react-scanner.config.js index 9c0b742840bce..cf9b4aa7c06da 100644 --- a/react-scanner.config.js +++ b/react-scanner.config.js @@ -3,7 +3,7 @@ module.exports = { crawlFrom: './', // Needed for properly reporting components with dot notation includeSubComponents: true, - // Exclude usage in tests, stories, and React Native files. + // Exclude usage in tests and stories. globs: [ '**/!(test|stories)/!(*stories).@(js|ts)?(x)' ], // Exclude any vendor or docs directories exclude: [ @@ -18,10 +18,8 @@ module.exports = { 'static', 'test', ], - /* - * Filter out any non-component React elements and consider only imports of - * `@wordpress/components` outside of the package. - */ + // Consider only imports of `@wordpress/components` importedFrom: '@wordpress/components', + // Full usage report processors: [ [ 'raw-report', { outputTo: './results/calypso.json' } ] ], };