Add eslint pre-commit hook

This replaces the old arclint eslint setup 1:1 rule wise, only porting
the configuration to a format recent eslint can read.

Further remove the arclint setup as it is no longer of use.

Thanks to Stan for reviewing all needed fixes to Javascript code to
allow for adding this without compromises.

Fixes: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2024-09-04 17:34:54 +02:00
parent 666ffb0f18
commit 02e15da51b
10 changed files with 178 additions and 278 deletions
+10
View File
@@ -72,3 +72,13 @@ repos:
- id: yamllint
args:
- --strict
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.27.0
hooks:
- id: eslint
additional_dependencies:
- eslint@9.27.0
- eslint-plugin-brace-rules@0.1.6
args:
- --max-warnings=0
- --no-warn-ignored