# function-paren-newline

Rule `eslint/function-paren-newline`. Enforce consistent line breaks inside function parentheses

- Source: eslint
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Deprecated: yes
- Reach: 9.9M weekly downloads of presets that enable it
- Trend: +2.2% last quarter
- Rank: #1097 by reach, #1604 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `function-paren-newline` | no | safe | package `eslint` | [docs](https://eslint.org/docs/latest/rules/function-paren-newline) |

## Code examples

### Incorrect: the rule reports this

```js
function foo(bar, baz) {}

var qux = function(bar, baz) {};

var qux = (bar, baz) => {};

foo(bar, baz);
```

```js
function foo(
  bar,
  baz
) {}

var qux = function(
  bar, baz
) {};

var qux = (
  bar,
  baz
) => {};

foo(
  bar,
  baz
);
```

```js
function foo(bar,
  baz
) {}

var qux = function(
  bar, baz
) {};

var qux = (
  bar,
  baz) => {};

foo(bar,
  baz);

foo(
  function() {
    return baz;
  }
);
```

### Correct: the rule accepts this

```js
function foo(
  bar,
  baz
) {}

var qux = function(
  bar, baz
) {};

var qux = (
  bar,
  baz
) => {};

foo(
  bar,
  baz
);
```

```js
function foo(bar, baz) {}

function qux(bar,
             baz) {}

var foobar = function(bar, baz) {};

var foobar = (bar, baz) => {};

foo(bar, baz);

foo(bar,
  baz);
```

```js
function foo(bar, baz) {}

var foobar = function(
  bar,
  baz
) {};

var foobar = (bar, baz) => {};

foo(bar, baz, qux);

foo(
  bar,
  baz,
  qux
);

foo(function() {
  return baz;
});
```

Examples from the ESLint documentation.

## Enable it

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

```js
export default [
  {
    rules: {
      "function-paren-newline": "error",
    },
  },
];
```

## Presets that enable it

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

## Related rules

- [eslint/consistent-return](https://lintradar.dev/rules/eslint/consistent-return.md): Require `return` statements to either always or never specify values
- [eslint/no-restricted-exports](https://lintradar.dev/rules/eslint/no-restricted-exports.md): Disallow specified names in exports
- [eslint/no-underscore-dangle](https://lintradar.dev/rules/eslint/no-underscore-dangle.md): Disallow dangling underscores in identifiers
- [eslint/no-continue](https://lintradar.dev/rules/eslint/no-continue.md): Disallow `continue` statements
- [eslint/accessor-pairs](https://lintradar.dev/rules/eslint/accessor-pairs.md): Enforce getter and setter pairs in objects and classes
- [eslint/no-unmodified-loop-condition](https://lintradar.dev/rules/eslint/no-unmodified-loop-condition.md): Disallow unmodified loop conditions

---

Web page: https://lintradar.dev/rules/eslint/function-paren-newline. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
