mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 11:03:27 +00:00
better sort packages by external/package/local
This commit is contained in:
parent
fc2e1e3ae5
commit
cfbd0d16aa
|
@ -7,7 +7,16 @@ module.exports = {
|
|||
bracketSameLine: false,
|
||||
semi: true,
|
||||
quoteProps: 'consistent',
|
||||
importOrder: ['^\\w', '^@sd/(interface|client|ui)(/.*)?$', '^[\\./~]'],
|
||||
importOrder: [
|
||||
// external packages
|
||||
'^([A-Za-z]|@[^s/])',
|
||||
// spacedrive packages
|
||||
'^@sd/(interface|client|ui)(/.*)?$',
|
||||
// this package
|
||||
'^~/',
|
||||
// relative
|
||||
'^\\.'
|
||||
],
|
||||
importOrderSortSpecifiers: true,
|
||||
plugins: ['@trivago/prettier-plugin-sort-imports']
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue