Skip to content

Lack of documentation on how to use 'components' config #69

Open
@coolcorexix

Description

Only when I check the source code did I guess right about how to use it,

async function scanFiles() {
  const results = await scanner.run({
    rootDir: '.',
    crawlFrom: 'app/react',
    includeSubComponents: true,
+    components: {
+      Switch: true,
+   },
    importedFrom: 'react-router-dom',
  });

it is also a little counter-intuitive. do you the author, think it should be:

...
components: ['Switch']
...

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions