mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	Even though we have separate packages for `help-beta`, we have opted to put the prettier plugin and config for astro files in the main project itself, so that linting needs to be configured only at one place.
		
			
				
	
	
		
			27 lines
		
	
	
		
			568 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			568 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| export default {
 | |
|     bracketSpacing: false,
 | |
|     trailingComma: "all",
 | |
|     plugins: ["prettier-plugin-astro"],
 | |
|     overrides: [
 | |
|         {
 | |
|             files: ["tsconfig.json"],
 | |
|             options: {
 | |
|                 parser: "json5",
 | |
|                 quoteProps: "preserve",
 | |
|             },
 | |
|         },
 | |
|         {
 | |
|             files: ["*.md"],
 | |
|             options: {
 | |
|                 embeddedLanguageFormatting: "off",
 | |
|             },
 | |
|         },
 | |
|         {
 | |
|             files: "*.astro",
 | |
|             options: {
 | |
|                 parser: "astro",
 | |
|             },
 | |
|         },
 | |
|     ],
 | |
| };
 |