Enforces spacing inside function call arguments.
The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
The following patterns are not considered problems:
const app = { use: () => {} }
const foo = ( a, b ) => {}
/* eslint wyze/func-call-arg-spacing: 'error' */
foo(1, 2)
foo(
1,
2,
)
app.use(( req, res ) => {})
[].filter(x => x)
The following patterns are considered problems:
const app = { use: () => {} }
const foo = ( a, b ) => {}
/* eslint wyze/func-call-arg-spacing: 'error' */
foo( 1, 2 )
app.use( ( req, res ) => {} )
[].filter( x => x )
You can turn this rule off if you are not concerned with the consistency of spacing inside function call arguments.