Skip to content

function-call-argument-newline rule since ESLint 6.2.0 #102

@ybiquitous

Description

@ybiquitous

The function-call-argument-newline rule has been added since ESLint 6.2.0.

This rule looks to detect stylistic issues, so should eslint-config-prettier disable this rule?

The following is a test case:

$ eslint -v
v6.2.0

$ prettier -v
1.18.2

$ cat test.js
/*eslint function-call-argument-newline: ["error", "always"]*/

function foo(a, b, c) {
  return a + b + c;
}

foo("one", "two", "three");

$ eslint --no-eslintrc test.js

/tmp/test.js
  7:11  error  There should be a line break after this argument  function-call-argument-newline
  7:18  error  There should be a line break after this argument  function-call-argument-newline

✖ 2 problems (2 errors, 0 warnings)
  2 errors and 0 warnings potentially fixable with the `--fix` option.

$ prettier --no-config -c test.js
Checking formatting...
All matched files use Prettier code style!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions