mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-07 04:23:29 +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,
|
bracketSameLine: false,
|
||||||
semi: true,
|
semi: true,
|
||||||
quoteProps: 'consistent',
|
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,
|
importOrderSortSpecifiers: true,
|
||||||
plugins: ['@trivago/prettier-plugin-sort-imports']
|
plugins: ['@trivago/prettier-plugin-sort-imports']
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue