Flow/Flowtype Source Code Format

I'm running into an issue. I'm using ESLint with the Airbnb style settings, and I have the flowtypes plugin. In the definition, and my personal taste. There should be a space after the colon when defining a variable and a type: const test: TestClass = new TestClass(); The problem that I'm running into is that when I tell WebStorm to reformat the code, which I usually like to run on commit, it takes the space away, so the result is const test:TestClass = new TestClass(); So then I'm committing something that doesn't pass linting. For now, I've had to just not reformat the code for any files using Flow. Is there a setting I'm missing? I can't find anything in JavaScript code style. I changed it in TypeScript, in case that part of the formatter was being used for Flow types.  I'm at a loss at this point. Any help would be appreciated.


1 comment
Comment actions Permalink

Not possible currently, please vote for https://youtrack.jetbrains.com/issue/WEB-20977 to be notified on any progress with this feature


Please sign in to leave a comment.