mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
ESLint: Enable @typescript-eslint/naming-convention rule
This check enforces consistent variable naming. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
1114127b80
commit
e83f1e206b
4 changed files with 32 additions and 6 deletions
|
@ -18,6 +18,8 @@ import * as getRawBody from 'raw-body';
|
|||
*
|
||||
* Implementation inspired by https://stackoverflow.com/questions/52283713/how-do-i-pass-plain-text-as-my-request-body-using-nestjs
|
||||
*/
|
||||
// Override naming convention as decorators are in PascalCase
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
export const MarkdownBody = createParamDecorator(
|
||||
async (_, context: ExecutionContext) => {
|
||||
// we have to check req.readable because of raw-body issue #57
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue