Closed
Description
Don't know what's the root cause of this problem, I guess it's the parser
What code were you trying to parse?
function x<R extends Record<string, (this: any) => any>>(fns: R) {
return fns
}
when eslint config includes
"comma-spacing": "warn",
"space-before-function-paren": ["warn", "never"],
What did you expect to happen?
code shall pass lint
What actually happened?
code violates rule comma-spacing
when
function x<R extends Record<string,(this: any) => any>>(fns: R) {
return fns
}
and violates space-before-function-paren
when
function x<R extends Record<string, (this: any) => any>>(fns: R) {
return fns
}
Versions
package | version |
---|---|
@typescript-eslint/parser |
1.12.0 |
TypeScript |
3.5.3 |
ESLint |
6.0.2 |