2023-01-21 07:39:10 +00:00
|
|
|
/**
|
|
|
|
* {@type require('prettier').Config}
|
|
|
|
*/
|
2022-10-05 01:45:54 +00:00
|
|
|
module.exports = {
|
|
|
|
useTabs: true,
|
|
|
|
printWidth: 100,
|
|
|
|
singleQuote: true,
|
|
|
|
trailingComma: 'none',
|
|
|
|
bracketSameLine: false,
|
|
|
|
semi: true,
|
|
|
|
quoteProps: 'consistent',
|
2023-01-20 02:30:59 +00:00
|
|
|
importOrder: [
|
|
|
|
// external packages
|
|
|
|
'^([A-Za-z]|@[^s/])',
|
|
|
|
// spacedrive packages
|
|
|
|
'^@sd/(interface|client|ui)(/.*)?$',
|
|
|
|
// this package
|
|
|
|
'^~/',
|
|
|
|
// relative
|
|
|
|
'^\\.'
|
|
|
|
],
|
2022-10-05 01:45:54 +00:00
|
|
|
importOrderSortSpecifiers: true,
|
2023-01-21 07:40:30 +00:00
|
|
|
importOrderParserPlugins: ['importAssertions', 'typescript', 'jsx'],
|
2023-02-16 07:04:19 +00:00
|
|
|
pluginSearchDirs: false,
|
|
|
|
plugins: ['@trivago/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss'],
|
2023-04-04 05:39:07 +00:00
|
|
|
tailwindConfig: './packages/ui/tailwind.config.js'
|
2022-10-05 01:45:54 +00:00
|
|
|
};
|