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?

Comment actions Permalink

Try disabling Before Parentheses | In function expression


Comment actions Permalink

Thanks, this did the trick!


Please sign in to leave a comment.