forked from spacedriveapp/spacedrive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.prettierrc.js
More file actions
31 lines (30 loc) · 736 Bytes
/
Copy path.prettierrc.js
File metadata and controls
31 lines (30 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const path = require('node:path');
/**
* {@type require('prettier').Config}
*/
module.exports = {
useTabs: true,
printWidth: 100,
singleQuote: true,
trailingComma: 'none',
bracketSameLine: false,
semi: true,
quoteProps: 'consistent',
importOrder: [
// external packages
'<THIRD_PARTY_MODULES>',
// spacedrive packages
'^@sd/(interface|client|ui)(/.*)?$',
// internal packages
'^@/',
'^~/',
'',
// relative
'^[../]',
'^[./]'
],
importOrderParserPlugins: ['typescript', 'jsx', 'decorators'],
importOrderTypeScriptVersion: '5.0.0',
tailwindConfig: path.resolve(path.join(__dirname, 'packages/ui/tailwind.config.js')),
plugins: ['@ianvs/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss']
};