# jsx-first-prop-new-line

Rule `react/jsx-first-prop-new-line`. Enforce proper position of the first property in JSX

- Source: react
- Technologies: React
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 3.4M weekly downloads of presets that enable it
- Trend: +2.3% last quarter
- Rank: #1441 by reach, #1577 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `react/jsx-first-prop-new-line` | no | safe | package `eslint-plugin-react` | [docs](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-first-prop-new-line.md) |

## Code examples

### Incorrect: the rule reports this

```jsx
<Hello personal={true} />

<Hello personal={true}
    foo="bar"
/>
```

```jsx
<Hello
    personal />

<Hello
    personal
/>
```

```jsx
<Hello personal
    prop />
```

### Correct: the rule accepts this

```jsx
<Hello
    personal />

<Hello
    personal
/>
```

```jsx
<Hello personal={true} />

<Hello personal={true}
    foo="bar"
/>
```

```jsx
<Hello personal={true} />

<Hello
    personal={true}
    foo="bar"
/>
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import react from "eslint-plugin-react";

export default [
  {
    plugins: { react },
    rules: {
      "react/jsx-first-prop-new-line": "error",
    },
  },
];
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Airbnb](https://lintradar.dev/presets/airbnb.md) | ESLint | `eslint-config-airbnb` | 346 | 3.4M | +2.3% |

## Related rules

- [react/jsx-equals-spacing](https://lintradar.dev/rules/react/jsx-equals-spacing.md): Enforce or disallow spaces around equal signs in JSX attributes
- [react/jsx-indent](https://lintradar.dev/rules/react/jsx-indent.md): Enforce JSX indentation
- [react/jsx-curly-spacing](https://lintradar.dev/rules/react/jsx-curly-spacing.md): Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
- [react/jsx-indent-props](https://lintradar.dev/rules/react/jsx-indent-props.md): Enforce props indentation in JSX
- [react/jsx-curly-newline](https://lintradar.dev/rules/react/jsx-curly-newline.md): Enforce consistent linebreaks in curly braces in JSX attributes and expressions
- [react/jsx-max-props-per-line](https://lintradar.dev/rules/react/jsx-max-props-per-line.md): Enforce maximum of props on a single line in JSX

---

Web page: https://lintradar.dev/rules/react/jsx-first-prop-new-line. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
