-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Milestone
Description
Repro
{
"extends": ["airbnb-typescript/base", "prettier"],
"parser": "@typescript-eslint/parser",
"plugins": ["import", "@typescript-eslint", "prettier"],
"rules": {
"import/prefer-default-export": "off",
"max-classes-per-file": "off",
"class-methods-use-this": "off",
"import/no-unresolved": "error"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": {}
}
}
}
@Post('/')
@OnUndefined(201)
async someFunction(
@CurrentUser({ required: true }) user: User,
@Body({ required: true }) body: SomeRequest
): Promise<void> {
// function truncated
}
Expected Result
@Post('/')
@OnUndefined(201)
async someFunction(
@CurrentUser({ required: true }) user: User,
@Body({ required: true }) body: SomeRequest
): Promise<void> {
// function truncated
}
Actual Result
@Post('/')
@OnUndefined(201)
async someFunction(
@CurrentUser({ required: true }) user: User,
@Body({ required: true }) body: SomeRequest
): Promise<void> {
// function truncated
}
Additional Info
The 2nd parameter @Body
was wrongly indented 6 spaces ( should be 4 spaces).
Works in @typescript-eslint/eslint-plugin
and @typescript-eslint/parser
2.7.0
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
2.8.0 |
@typescript-eslint/parser |
2.8.0 |
TypeScript |
3.7.2 |
ESLint |
6.6.0 |
Xample, DanielSchaffer, nurdism, jgeth, joetjengerdes and 12 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin