-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workinghas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
Repro
{
"rules": {
"@typescript-eslint/method-signature-style": "error"
}
}
interface Foo {
x(
args: Pick<
Bar,
'one' | 'two' | 'three'
>,
): Baz;
y(): void;
}
(This formatting is controlled by Prettier)
Expected Result
interface Foo {
x: (
args: Pick<
Bar,
'one' | 'two' | 'three'
>
) => Baz
y: () => void
}
Actual Result
interface Foo {
x: (
args: Pick<
Bar,
'one' | 'two' | 'three'
>, => Baz
y: () => void
}
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
2.27.0 |
@typescript-eslint/parser |
2.27.0 |
TypeScript |
3.8.3 |
ESLint |
6.8.0 |
node |
12.14.0 |
yarn |
1.22.4 |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin