From e40a557afb6b7c60b99e9476f5e9a98ae06d734f Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:49:45 +0200 Subject: [PATCH] Properly ignore stories and tests --- react-scanner.config.js | 2 ++ 1 file changed, 2 insertions(+) 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',