<commit_before># Validate JSX maximum depth (react/jsx-max-depth)

This option validates a specific depth for JSX.

## Rule Details

The following patterns are considered warnings:

```jsx
<App>
  <Foo>
    <Bar>
      <Baz />
    </Bar>
  </Foo>
</App>

```

## Rule Options

It takes an option as the second parameter which can be a positive number for depth count.

```js
...
"react/jsx-no-depth": [<enabled>, { "max": <number> }]
...
```

The following patterns are considered warnings:

```jsx
// [2, { "max": 1 }]
<App>
  <Foo>
    <Bar />
  </Foo><commit_msg>Fix typo<commit_after># Validate JSX maximum depth (react/jsx-max-depth)

This option validates a specific depth for JSX.

## Rule Details

The following patterns are considered warnings:

```jsx
<App>
  <Foo>
    <Bar>
      <Baz />
    </Bar>
  </Foo>
</App>

```

## Rule Options

It takes an option as the second parameter which can be a positive number for depth count.

```js
...
"react/jsx-max-depth": [<enabled>, { "max": <number> }]
...
```

The following patterns are considered warnings:

```jsx
// [2, { "max": 1 }]
<App>
  <Foo>
    <Bar />
  </Foo>
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.0035460992907801418, 'mean_word_length': 3.0611510791366907, 'pattern_counts': {'":': 6, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2237952', 'n_tokens_mistral': 416, 'n_tokens_neox': 395, 'n_words': 136}