Skip to content

Commit

Permalink
update linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Aug 6, 2024
1 parent 587c894 commit 2fd8162
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.updateBuildConfiguration": "interactive"
"java.configuration.updateBuildConfiguration": "interactive",
"editor.codeActionsOnSave": {
"source.fixAll": true
}
}
26 changes: 4 additions & 22 deletions webapp/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
{
Expand Down

0 comments on commit 2fd8162

Please sign in to comment.