misc: configure eslint pre-commit hook (#66719)

This commit is contained in:
Corentin Sechet 2022-09-22 13:06:38 +02:00
parent 253620ecd0
commit 7dba744f85
1 changed files with 8 additions and 0 deletions

8
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,8 @@
repos:
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.23.1
hooks:
- id: eslint
files: \.m?js$
types: [file]
args: [--fix]