style: autoformat JS files

This commit is contained in:
Ankush Menat 2022-07-02 21:59:26 +05:30
parent a1eaefefda
commit 7c1b96bc62
2 changed files with 17 additions and 0 deletions

View file

@ -12,3 +12,4 @@ charset = utf-8
[{*.py,*.js,*.vue,*.css,*.scss,*.html}]
indent_style = tab
indent_size = 4
max_line_length = 99

View file

@ -32,6 +32,22 @@ repos:
- id: black
additional_dependencies: ['click==8.0.4']
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
types_or: [javascript]
exclude: |
(?x)^(
frappe/public/dist/.*|
.*node_modules.*|
.*boilerplate.*|
frappe/www/website_script.js|
frappe/templates/includes/.*|
frappe/public/js/lib/.*
)$
- repo: https://github.com/timothycrosley/isort
rev: 5.9.1
hooks: