Skip to content

Commit

Permalink
Allow class fields to not have lines between them
Browse files Browse the repository at this point in the history
Fixes #55
  • Loading branch information
sindresorhus committed Sep 25, 2019
1 parent e98f200 commit ef8780d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,12 @@ module.exports = {
],
'lines-between-class-members': [
'error',
'always'
'always',
{
// Workaround to allow class fields to not have lines between them.
// TODO: Get ESLint to add an option to ignore class fields.
exceptAfterSingleLine: true
}
],
'max-depth': 'warn',
'max-nested-callbacks': [
Expand Down

0 comments on commit ef8780d

Please sign in to comment.