You've already forked pages
forked from didirus/AstralRinth
* feat: consistently format all HTML, XML, JSON, CSS, JS, TS, SQL, TOML, YAML, and Markdown files * chore: deal with VS Code not being able to parse valid editorconfig syntax Sometimes I'm surprised that computers even work. * chore: get rid of IntelliJ IDE config files that should not be there These were already added to the `.gitignore` a long time ago, and now are being ignored by Prettier. * fix: rename `tooling-config` `format` script to `fix` for it to run with Turbo
28 lines
607 B
JavaScript
28 lines
607 B
JavaScript
/**
|
|
* @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',
|
|
}
|