/**
 * @see https://prettier.io/docs/configuration
 * @type {import("prettier").Config}
 */
module.exports = {
	semi: false,
	singleQuote: true,
	plugins: ['prettier-plugin-toml', 'prettier-plugin-sql-cst', '@prettier/plugin-xml'],
	overrides: [
		{
			files: ['*.sql'],
			options: {
				parser: 'sqlite',
				sqlAcceptUnsupportedGrammar: true,
			},
		},
		{
			files: ['*.jsonc'],
			options: {
				parser: 'jsonc',
				// By spec, JSONC only extends JSON with comment support, not trailing commas as Prettier likes to add
				trailingComma: 'none',
			},
		},
	],
	xmlWhitespaceSensitivity: 'ignore',
}
