# Prettier configuration for Odoo addons
# Note: XML formatting disabled for QWeb templates due to prettier limitations
# with mixed content (text + tags). Use manual formatting for .xml files.

printWidth: 100
tabWidth: 4
useTabs: false

# XML/HTML specific - disabled, causes readability issues with QWeb
# xmlWhitespaceSensitivity: "strict"
# xmlSelfClosingSpace: true

# Keep tags more compact - don't break every attribute
overrides:
    # XML files with improved readability
    - files: "*.xml"
      options:
          printWidth: 100
          xmlWhitespaceSensitivity: "ignore"
          singleAttributePerLine: true
          bracketSameLine: false

    - files: "*.py"
      options:
          printWidth: 88

    - files: ["*.json", "*.json5"]
      options:
          printWidth: 120
          tabWidth: 2
