build: Replace Codelyzer and TSLint with Angular ESLint

Migrate from the deprecated TSLint to Angluar ESLint. Also fix current
linting issues in the code, in particular:

- Use strict equals operators (=== and !==)
- Remove empty lifecycle methods (mostly ngOnInit)
- Output bindings including aliases should not be named as standard dom
  events (submit)
- Async pipe results should not be negated
This commit is contained in:
Ralph Hopman
2024-11-08 09:37:08 +01:00
committed by Adam Saghy
parent e910679673
commit 9034ce2847
204 changed files with 2184 additions and 1173 deletions
+9 -3
View File
@@ -70,6 +70,11 @@
},
"devDependencies": {
"@angular-devkit/build-angular": "14.2.12",
"@angular-eslint/builder": "14.4.0",
"@angular-eslint/eslint-plugin": "14.4.0",
"@angular-eslint/eslint-plugin-template": "14.4.0",
"@angular-eslint/schematics": "14.4.0",
"@angular-eslint/template-parser": "14.4.0",
"@angular/cli": "14.2.12",
"@angular/compiler-cli": "14.3.0",
"@angular/language-service": "14.3.0",
@@ -85,8 +90,10 @@
"@types/lodash": "4.14.132",
"@types/node": "12.11.1",
"@types/vkbeautify": "^0.99.2",
"codelyzer": "6.0.0",
"@typescript-eslint/eslint-plugin": "5.43.0",
"@typescript-eslint/parser": "5.43.0",
"cypress": "^10.7.0",
"eslint": "^8.28.0",
"git-describe": "^4.1.1",
"hads": "^3.0.3",
"htmlhint": "1.1.4",
@@ -110,7 +117,6 @@
"stylelint-scss": "3.6.1",
"tailwindcss": "^3.3.3",
"ts-node": "8.2.0",
"tslint": "~6.1.0",
"typescript": "4.6.4"
},
"repository": {
@@ -124,4 +130,4 @@
"node": ">= 16.15.1",
"npm": ">= 8.11.0"
}
}
}