From 2fd81620dcafac25251e317cd979a71dcf0c3880 Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Tue, 6 Aug 2024 18:37:05 +0200 Subject: [PATCH] update linting rules --- .vscode/settings.json | 5 ++++- webapp/eslint.config.js | 26 ++++---------------------- 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 75132b4b..72dbca1b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,7 @@ { "java.compile.nullAnalysis.mode": "automatic", - "java.configuration.updateBuildConfiguration": "interactive" + "java.configuration.updateBuildConfiguration": "interactive", + "editor.codeActionsOnSave": { + "source.fixAll": true + } } \ No newline at end of file diff --git a/webapp/eslint.config.js b/webapp/eslint.config.js index 566f2bd1..5329136c 100644 --- a/webapp/eslint.config.js +++ b/webapp/eslint.config.js @@ -54,28 +54,10 @@ module.exports = [ style: 'kebab-case', }, ], - '@typescript-eslint/no-non-null-assertion': 'off', - '@typescript-eslint/no-unsafe-return': 'off', - '@typescript-eslint/no-unsafe-member-access': 'off', - '@typescript-eslint/no-unsafe-call': 'off', - '@typescript-eslint/no-floating-promises': 'off', - '@typescript-eslint/no-unsafe-assignment': 'off', - '@angular-eslint/no-output-on-prefix': 'off', - '@typescript-eslint/ban-ts-comment': 'warn', - '@typescript-eslint/no-empty-function': 'off', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'warn', - '@typescript-eslint/no-explicit-any': 'off', - 'no-case-declarations': 'off', - 'prefer-const': 'warn', - 'prefer-spread': 'warn', - 'no-var': 'error', - 'sort-imports': [ - 'error', - { - ignoreDeclarationSort: true, - }, - ], - '@typescript-eslint/no-unused-vars': ['error', { caughtErrors: 'none' }], + '@angular-eslint/prefer-standalone': 'error', + '@angular-eslint/template/prefer-ngsrc': 'error', + '@angular-eslint/template/prefer-self-closing-tags': 'error', + '@angular-eslint/template/prefer-control-flow': 'error', }, }, {