You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking into using the padding-line-between-statements rule and was wondering if there is a way to differentiate between single-line and multi-line export statements.
I would like to enforce a blank line when using a multi-line export statement like 👇
// enforce a blank lineexportfunctionmyFync(){// function code}
However, in a case where there are a series of simple, one-line export statements like 👇 , I would like to disallow - or at least not enforce the rule
// ignore the rule or disallow using a blank lineexportconsta='a';exportconstb='b';exportconstc='c';
In a config like 👇, is there a way to tweak it to achieve what I want?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi 👋
I was looking into using the
padding-line-between-statements
rule and was wondering if there is a way to differentiate between single-line and multi-lineexport
statements.I would like to enforce a blank line when using a multi-line export statement like 👇
However, in a case where there are a series of simple, one-line export statements like 👇 , I would like to disallow - or at least not enforce the rule
In a config like 👇, is there a way to tweak it to achieve what I want?
Beta Was this translation helpful? Give feedback.
All reactions