jsx-wrap-multilines
Configuration
rslint.config.ts
Rule Details
Prevent missing parentheses around multiline JSX. Wrapping multiline JSX in parentheses improves readability and avoids potential issues with automatic semicolon insertion.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
An object with the following properties, each accepting:
"parens": Require parentheses around multiline JSX."parens-new-line": Require parentheses with opening(and closing)on separate lines from the JSX."never": Disallow parentheses around multiline JSX."ignore": Do not check this context.
Properties:
declaration(default:"parens"): Variable declarationsassignment(default:"parens"): Assignmentsreturn(default:"parens"): Return statementsarrow(default:"parens"): Arrow function bodiescondition(default:"ignore"): Ternary conditionslogical(default:"ignore"): Logical expressionsprop(default:"ignore"): JSX prop values