Skip to content
This repository has been archived by the owner on Jan 11, 2018. It is now read-only.

Commit

Permalink
Add lines-between-class-members
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Sova committed Nov 3, 2017
1 parent e6692b9 commit 701336e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ module.exports = {
'brace-style': ['error', 'stroustrup'],
'quote-props': ['error', 'as-needed'],
'no-plusplus': 'off',
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],

'import/no-unresolved': 'off',
'import/extensions': ['error', 'never',
Expand Down
30 changes: 30 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,36 @@ https://eslint.org/docs/rules/no-plusplus
We use it, because it good shorthand for some cases.


## lines-between-class-members: `[error, always]`

```js
{ exceptAfterSingleLine: true }
```

https://eslint.org/docs/rules/lines-between-class-members

Add lines between class methods/properties.

Example:
```js
class Foo {
id = 1
name = 'Foo'

constructor() {
// code
}

toString() { /* single line */ }

member() {
// code
}

}
```


## import/no-unresolved: `off`

https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
Expand Down

0 comments on commit 701336e

Please sign in to comment.