kisstkondoros / codemetrics

VSCode extension which shows the complexity information for TypeScript class members
Other
402 stars 20 forks source link

React JSX #60

Closed johnstew closed 6 years ago

johnstew commented 6 years ago

Hi there, quick question. I noticed the complexity for each React component is returning a 1. Is that correct?

kisstkondoros commented 6 years ago

Hi, yes it is correct. However if the behavior does not matches the expectations one could configure it in the user/workspace settings (settings.json in .vscode folder)

    "codemetrics.nodeconfiguration.JsxElement": 0,
    "codemetrics.nodeconfiguration.JsxSelfClosingElement": 0,
johnstew commented 6 years ago

thanks!