Skip to content

Commit

Permalink
Fix config comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Dec 5, 2024
1 parent d072008 commit 79aefcd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions react-scanner.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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' } ] ],
};

0 comments on commit 79aefcd

Please sign in to comment.