From 8efce6bee0ccb1aec60487da04755450a09a18a9 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sun, 23 Mar 2025 11:53:36 +0100 Subject: [PATCH] refactor(backend): Methoden en parameters --- eslint.config.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/eslint.config.ts b/eslint.config.ts index bbc68665..bc42bd39 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -38,9 +38,15 @@ export default [ '@typescript-eslint/consistent-type-definitions': 'error', '@typescript-eslint/consistent-type-exports': 'off', '@typescript-eslint/consistent-type-imports': 'off', + 'default-param-last': 'off', + '@typescript-eslint/default-param-last': 'error', '@typescript-eslint/explicit-function-return-type': 'warn', + 'max-params': 'off', + '@typescript-eslint/max-params': ['error', { 'max': 6 }], + '@typescript-eslint/member-ordering': 'warn', + '@typescript-eslint/method-signature-style': 'off', // Don't care about TypeScript strict mode. '@typescript-eslint/naming-convention': [ 'warn', { // Enforce that all variables, functions and properties are camelCase @@ -76,6 +82,8 @@ export default [ '@typescript-eslint/no-type-alias': 'off', + '@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error', + '@typescript-eslint/no-unnecessary-type-arguments': 'error', '@typescript-eslint/no-unnecessary-type-assertion': 'error', '@typescript-eslint/no-unnecessary-type-constraint': 'error', @@ -99,8 +107,13 @@ export default [ 'no-use-before-define': 'off', '@typescript-eslint/no-use-before-define': 'off', + '@typescript-eslint/parameter-properties': 'off', + '@typescript-eslint/prefer-function-type': 'error', + '@typescript-eslint/prefer-readonly-parameter-types': 'off', + '@typescript-eslint/prefer-reduce-type-parameter': 'error', + '@typescript-eslint/promise-function-async': 'warn', 'no-await-in-loop': 'warn', @@ -119,7 +132,6 @@ export default [ curly: 'error', 'default-case': 'error', 'default-case-last': 'error', - 'default-param-last': 'error', 'dot-notation': 'warn', eqeqeq: 'error', 'func-names': 'warn',