mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-19 05:45:01 -04:00
better sort packages by external/package/local
This commit is contained in:
@@ -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']
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user