Skip to content

Commit

Permalink
docs(eslint-plugin): example in [default-param-last] (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
susisu authored and armano2 committed Jan 19, 2020
1 parent 498aa24 commit 63c6351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/docs/rules/default-param-last.md
Expand Up @@ -10,7 +10,6 @@ Examples of **incorrect** code for this rule:
/* eslint @typescript-eslint/default-param-last: ["error"] */

function f(a = 0, b: number) {}
function f(a: number, b = 0, c?: number) {}
function f(a: number, b = 0, c: number) {}
function f(a: number, b?: number, c: number) {}
```
Expand All @@ -24,6 +23,7 @@ function f(a = 0) {}
function f(a: number, b = 0) {}
function f(a: number, b?: number) {}
function f(a: number, b?: number, c = 0) {}
function f(a: number, b = 0, c?: number) {}
```

<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/default-param-last.md)</sup>

0 comments on commit 63c6351

Please sign in to comment.