# 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: # Disable prettier for XML files - manual formatting preferred # - files: "*.xml" # options: # printWidth: 120 # xmlWhitespaceSensitivity: "strict" # singleAttributePerLine: false # bracketSameLine: true - files: "*.py" options: printWidth: 88 - files: ["*.json", "*.json5"] options: printWidth: 120 tabWidth: 2