Skip to content

Instantly share code, notes, and snippets.

@mrhammadasif
Created October 23, 2022 09:30
Show Gist options
  • Save mrhammadasif/e9824d9dff1a956ec7942ee0faae9a80 to your computer and use it in GitHub Desktop.
Save mrhammadasif/e9824d9dff1a956ec7942ee0faae9a80 to your computer and use it in GitHub Desktop.
For cleaning your code for brevity and nice style
...
'padding-line-between-statements': [
'error',
{
blankLine: 'always',
prev: [
'multiline-const', 'multiline-let', 'multiline-var', 'multiline-block-like', 'return', 'multiline-expression',
],
next: '*',
},
{
blankLine: 'never',
prev: [
'singleline-const', 'singleline-let', 'singleline-var',
],
next: [
'singleline-const', 'singleline-let', 'singleline-var',
],
},
],
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment