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

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Nov 29, 2017
1 parent 1317ace commit b435554
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = {
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' },
{ blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'] }
{ blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'] },
],

'import/no-unresolved': 'off',
Expand Down
70 changes: 70 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,69 @@ class Foo {
```


## implicit-arrow-linebreak: `[error, beside]`

https://eslint.org/docs/rules/implicit-arrow-linebreak

Implicit return in arrow function should be on same line.

Correct:

```js
const foo = () => 1
const bar = () => (
2
)
const baz = () => {
const val = 3
return 3
}
```

Incorrect:

```js
const foo = () =>
1
const bar = () =>
(
2
)
const baz = () =>
() =>
3
```


## padding-line-between-statements: `error`

```js
{ blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' },
{ blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'] },
```

https://eslint.org/docs/rules/padding-line-between-statements

Add padding line after `let`, `const` definitions.

Correct:

```js
const foo = 1
const bar = 2

runFunc(foo, bar)
```

Incorrect:

```js
const foo = 1
const bar = 2
runFunc(foo, bar)
```


## import/no-unresolved: `off`

https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
Expand Down Expand Up @@ -424,3 +487,10 @@ Variable names like `e`, `err`, `er` is so short. Name should be comprehensive l
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-fn-reference-in-iterator.md

Disabled, because we like functional programming and we check all changelogs before update dependencies.


## unicorn/import-index: `off`

https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/import-index.md

Disabled, because we like more descriptive paths.

0 comments on commit b435554

Please sign in to comment.