mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 14:04:43 -04:00
chore: linting and build fixes
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
4869f3310c
commit
431e3df61b
4 changed files with 17 additions and 34 deletions
|
@ -202,6 +202,7 @@ export class NotesController {
|
|||
@RequestNoteId() noteId: number,
|
||||
@Param('username') username: NoteUserPermissionEntryDto['username'],
|
||||
): Promise<NotePermissionsDto> {
|
||||
// TODO Fix this removing wrong user permission!
|
||||
try {
|
||||
await this.permissionService.removeUserPermission(noteId, userId);
|
||||
return await this.noteService.toNotePermissionsDto(noteId);
|
||||
|
|
|
@ -5,36 +5,19 @@
|
|||
*/
|
||||
|
||||
module.exports = {
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"project": [
|
||||
"./tsconfig.test.json"
|
||||
]
|
||||
},
|
||||
"plugins": [
|
||||
"@typescript-eslint",
|
||||
"jest",
|
||||
"prettier"
|
||||
],
|
||||
"env": {
|
||||
"jest": true,
|
||||
"jest/globals": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"prettier"
|
||||
],
|
||||
"rules": {
|
||||
"prettier/prettier": ["error",
|
||||
require('./.prettierrc.json')
|
||||
],
|
||||
"jest/no-disabled-tests": "warn",
|
||||
"jest/no-focused-tests": "error",
|
||||
"jest/no-identical-title": "error",
|
||||
"jest/prefer-to-have-length": "warn",
|
||||
"jest/valid-expect": "error"
|
||||
}
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
project: ['./tsconfig.test.json'],
|
||||
},
|
||||
plugins: ['@typescript-eslint', 'prettier'],
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/eslint-recommended',
|
||||
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'prettier',
|
||||
],
|
||||
rules: {
|
||||
'prettier/prettier': ['error', require('./.prettierrc.json')],
|
||||
},
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import { FieldNameApiToken } from './api-token'
|
||||
|
||||
/**
|
||||
* The AuthorshipInfo holds the information from where to where one {@link User} has changed a {@link Note}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"extends" : "./tsconfig.esm.json",
|
||||
"extends" : "./tsconfig.cjs.json",
|
||||
"exclude": ["./dist"]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue