diff --git a/.editorconfig b/.editorconfig index f4c7f1528c..a3b1ef0924 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,3 +12,4 @@ charset = utf-8 [{*.py,*.js,*.vue,*.css,*.scss,*.html}] indent_style = tab indent_size = 4 +max_line_length = 99 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b231221517..e4da469f8a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: