chore: linting and build fixes

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2025-05-19 11:42:26 +02:00
parent 4869f3310c
commit 431e3df61b
No known key found for this signature in database
GPG key ID: DB99ADDDC5C0AF82
4 changed files with 17 additions and 34 deletions

View file

@ -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);

View file

@ -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')],
},
}

View file

@ -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}

View file

@ -1,4 +1,4 @@
{
"extends" : "./tsconfig.esm.json",
"extends" : "./tsconfig.cjs.json",
"exclude": ["./dist"]
}