2023-10-12 15:03:38 -04:00
|
|
|
/** @type {import("prettier").Config} */
|
|
|
|
|
const config = {
|
2020-07-15 17:30:37 -04:00
|
|
|
arrowParens: 'avoid',
|
|
|
|
|
bracketSpacing: true,
|
|
|
|
|
htmlWhitespaceSensitivity: 'css',
|
|
|
|
|
insertPragma: false,
|
2021-12-31 17:39:16 -08:00
|
|
|
bracketSameLine: false,
|
2020-07-15 17:30:37 -04:00
|
|
|
jsxSingleQuote: false,
|
|
|
|
|
printWidth: 120,
|
|
|
|
|
proseWrap: 'preserve',
|
|
|
|
|
quoteProps: 'as-needed',
|
|
|
|
|
requirePragma: false,
|
|
|
|
|
semi: true,
|
|
|
|
|
singleQuote: true,
|
|
|
|
|
tabWidth: 2,
|
2024-12-13 02:56:24 -05:00
|
|
|
useTabs: false,
|
|
|
|
|
organizeImportsSkipDestructiveCodeActions: true,
|
2024-12-17 16:22:42 -05:00
|
|
|
plugins: ['prettier-plugin-organize-imports', 'prettier-plugin-jinja-template'],
|
|
|
|
|
overrides: [
|
|
|
|
|
{
|
|
|
|
|
files: ['*.njk'],
|
|
|
|
|
options: {
|
|
|
|
|
parser: 'jinja-template',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
2020-07-15 17:30:37 -04:00
|
|
|
};
|
2023-10-12 15:03:38 -04:00
|
|
|
|
|
|
|
|
export default config;
|