What is the eslint rule to to enforce a space after the closing parentheses of a single-line if statement? #15267
-
For the life of me I cannot find an ESLint rule to enforce the following: // Bad:
if (foo)bar;
// Good:
if (foo) bar; Any assistance would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I think we don't have that rule in the core.
|
Beta Was this translation helpful? Give feedback.
-
stylistic rules changes are frozen. refs: https://github.com/eslint/eslint#stylistic-rule-updates You'll need to write your own. |
Beta Was this translation helpful? Give feedback.
stylistic rules changes are frozen. refs: https://github.com/eslint/eslint#stylistic-rule-updates
You'll need to write your own.