Skip to content

Commit

Permalink
Adjust JSX element depth from 5 to 7 (#45380)
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffl authored Jan 3, 2025
1 parent 1f20590 commit cc1c401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/ui/rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,11 @@ export const reactRules = /** @type {const} @satisfies {FlatConfig.Config} */ ({
[`${reactNamespace}/jsx-key`]: ERROR,

/**
* Enforce JSX maximum depth to 5.
* Enforce JSX maximum depth to 7.
*
* @see [react/jsx-max-depth](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-max-depth.md)
*/
[`${reactNamespace}/jsx-max-depth`]: [ERROR, { max: 5 }],
[`${reactNamespace}/jsx-max-depth`]: [ERROR, { max: 7 }],

/**
* Disallow comments from being inserted as text nodes.
Expand Down

0 comments on commit cc1c401

Please sign in to comment.