ESLint typescript conflicts
My eslint file has the following rules:
"object-curly-spacing": [ "error", "always" ],
"array-bracket-spacing": [ "error", "always" ],
"computed-property-spacing": [ "error", "never" ]
Which means I want to have the following styles:
// Good
this.props.dispatch({ type: Events.ITEM_SELECTED });
// Bad
this.props.dispatch({type: Events.ITEM_SELECTED});
// Good
[ a, b ] = [ b, a ];
//Bad
[a, b] = [b, a];
// Good
this.items[i] = item;
// Bad
this.items[ i ] = item;
Webstorm always attempts to add spacing in the 3rd example but that doesn't comply with the computed-property-spacing rule.
How can I achieve all rules working together?
Please sign in to leave a comment.
No way, as it requires adding 1 more formatting option; please vote for https://youtrack.jetbrains.com/issue/WEB-13488 to be notified on any progress with it