mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-20 09:29:11 +00:00
86c47dde4a
* format * fix lint issues
28 lines
658 B
JavaScript
28 lines
658 B
JavaScript
/**
|
|
* {@type require('prettier').Config}
|
|
*/
|
|
module.exports = {
|
|
useTabs: true,
|
|
printWidth: 100,
|
|
singleQuote: true,
|
|
trailingComma: 'none',
|
|
bracketSameLine: false,
|
|
semi: true,
|
|
quoteProps: 'consistent',
|
|
importOrder: [
|
|
// external packages
|
|
'^([A-Za-z]|@[^s/])',
|
|
// spacedrive packages
|
|
'^@sd/(interface|client|ui)(/.*)?$',
|
|
// this package
|
|
'^~/',
|
|
// relative
|
|
'^\\.'
|
|
],
|
|
importOrderSortSpecifiers: true,
|
|
importOrderParserPlugins: ['importAssertions', 'typescript', 'jsx'],
|
|
pluginSearchDirs: false,
|
|
plugins: ['@trivago/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss'],
|
|
tailwindConfig: './packages/ui/tailwind.config.js'
|
|
};
|