readonly-keyword fixer adds the readonly
modifier in the wrong place for decorated class properties
#81
Labels
readonly
modifier in the wrong place for decorated class properties
#81
This requires
experimentalDecorators: true
in tsconfig.Given the following TypeScript:
The
readonly-keyword
fixer outputs:This is invalid TypeScript syntax and fails to compile. The correct syntax for decorators and the readonly modifier should be:
Other notes
readonly
to the line, e.g.readonly readonly readonly readonly @Column('text') name!: number
The text was updated successfully, but these errors were encountered: