space-before-function-paren rule in WebStorm

The ESLint space-before-function-paren rule forbits space before function parentheses.

Using the settings below:

when formatting this using WebStorm

function test() {

}

everything is ok.

But reformatting this:

const test = function () {

}

does not remove the space before the parentheses.

Which spacing setting do I have to change in WebStorm to solve this?

2 comments

Try disabling Before Parentheses | In function expression

 


2

Please sign in to leave a comment.