diff --git a/README.md b/README.md index 5d21ce3..c25ca23 100644 --- a/README.md +++ b/README.md @@ -230,7 +230,7 @@ Here are all the available config options: | `components` | object | Components to report. Omit to report all components. | | `includeSubComponents` | boolean | Whether to report subcomponents or not.
When `false`, `Footer` will be reported, but `Footer.Content` will not.
When `true`, `Footer.Content` will be reported, as well as `Footer.Content.Legal`, etc.
Default: `false` | | `importedFrom` | string or regex | Before reporting a component, we'll check if it's imported from a module name matching `importedFrom` and, only if there is a match, the component will be reported.
When omitted, this check is bypassed. | -| `getComponentName` | function | This function is called to determine the component name to be used in the report based on the `import` declaration.
Default: `({ imported, local, moduleName, importType }) => imported \|\| local` | +| `getComponentName` | function | This function is called to determine the component name to be used in the report based on the `import` declaration.
Default: `({ imported, local, moduleName, importType }) => imported \|\| local` | | `processors` | array | See [Processors](#processors).
Default: `["count-components-and-props"]` | ## Processors diff --git a/package-lock.json b/package-lock.json index 302548d..c353761 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-scanner", - "version": "0.6.0", + "version": "0.7.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a25c693..cdd9945 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-scanner", - "version": "0.6.0", + "version": "0.7.0", "description": "Extract React components and props usage from code.", "bin": "bin/react-scanner", "scripts": {