diff --git a/react-scanner.config.js b/react-scanner.config.js index 9c0b742840bcef..cf9b4aa7c06da0 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' } ] ], };