YesPlayMusic/prettier.config.js
2022-03-17 19:30:43 +08:00

23 lines
513 B
JavaScript

module.exports = {
trailingComma: 'es5',
tabWidth: 2,
useTabs: false,
semi: false,
bracketSameLine: false,
arrowParens: 'avoid',
endOfLine: 'lf',
bracketSpacing: true,
htmlWhitespaceSensitivity: 'strict',
singleQuote: true,
jsxSingleQuote: true,
// Tailwind CSS
plugins: [require('prettier-plugin-tailwindcss')],
tailwindConfig: './tailwind.config.js',
// Sort import order
importOrder: ['^@/(.*)$', '^[./]'],
importOrderSeparation: false,
importOrderSortSpecifiers: true,
}