Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Lint HTML files

Benjamin Bädorfeba369027cd0
diff --git a/.github/workflows/eslint-core.yml b/.github/workflows/eslint-core.yml
index efab93ca250..21ca14ff53b 100644
--- a/.github/workflows/eslint-core.yml
+++ b/.github/workflows/eslint-core.yml
@@ -5,6 +5,7 @@ on:
- dev
- release/*
paths:
+ - '**.html'
- '**.js'
- '**.ts'
diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js
index 6a9d94ae626..377a015cd13 100644
--- a/frontend/.eslintrc.js
+++ b/frontend/.eslintrc.js
@@ -144,6 +144,7 @@ module.exports = {
* Any template/HTML related rules you wish to use/reconfigure over and above the
* recommended set provided by the @angular-eslint project would go here.
*/
+ "@angular-eslint/template/no-call-expression": 2,
}
},
{
diff --git a/frontend/package.json b/frontend/package.json
index 78b6f7795c7..6980dc72818 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -151,6 +151,7 @@
"test:watch": "ng test --watch=true",
"lint": "esprint check",
"lint:fix": "esprint check --fix",
+ "lint:eslint": "eslint",
"generate-typings": "tsc -d -p src/tsconfig.app.json"
}
}