ci: Add eslint in precommit

This commit is contained in:
Ankush Menat 2023-07-14 14:32:06 +05:30
parent c3119af5b6
commit 7e596aaea8

View file

@ -48,6 +48,22 @@ repos:
)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.44.0
hooks:
- id: eslint
types_or: [javascript]
# Ignore any files that might contain jinja / bundles
exclude: |
(?x)^(
frappe/public/dist/.*|
.*node_modules.*|
.*boilerplate.*|
frappe/www/website_script.js|
frappe/templates/includes/.*|
frappe/public/js/lib/.*
)$
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks: