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
|
2023-09-11 15:26:44 +00:00
|
|
|
'<THIRD_PARTY_MODULES>',
|
2023-01-20 02:30:59 +00:00
|
|
|
// spacedrive packages
|
|
|
|
'^@sd/(interface|client|ui)(/.*)?$',
|
2023-09-11 15:26:44 +00:00
|
|
|
// internal packages
|
|
|
|
'^@/',
|
2023-01-20 02:30:59 +00:00
|
|
|
'^~/',
|
2023-09-11 15:26:44 +00:00
|
|
|
'',
|
2023-01-20 02:30:59 +00:00
|
|
|
// relative
|
2023-09-11 15:26:44 +00:00
|
|
|
'^[../]',
|
|
|
|
'^[./]'
|
2023-01-20 02:30:59 +00:00
|
|
|
],
|
2023-09-11 15:26:44 +00:00
|
|
|
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
|
|
|
|
importOrderTypeScriptVersion: '4.4.0',
|
|
|
|
tailwindConfig: './packages/ui/tailwind.config.js',
|
|
|
|
plugins: ['@ianvs/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss']
|
2022-10-05 01:45:54 +00:00
|
|
|
};
|