diff --git a/react-scanner.config.js b/react-scanner.config.js index 6a38632729e17..680c903e1c12b 100644 --- a/react-scanner.config.js +++ b/react-scanner.config.js @@ -3,6 +3,8 @@ module.exports = { crawlFrom: './', // Needed for properly reporting components with dot notation includeSubComponents: true, + // Exclude usage in tests, stories, and React Native files. + globs: [ '**/!(test|stories)/!(*stories).@(js|ts)?(x)' ], // Exclude any vendor or docs directories exclude: [ 'bin',