forked from elizaOS/eliza-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.cjs
22 lines (21 loc) · 908 Bytes
/
.prettierrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const assetsSuffix = 'svg|png|css|scss';
module.exports = {
arrowParens: 'always',
singleQuote: true,
trailingComma: 'all',
tabWidth: 2,
semi: true,
printWidth: 100,
plugins: ['@trivago/prettier-plugin-sort-imports'],
importOrder: [
`^(?!(@\/)|(\\.)|(\\..)[a-z@]).(?!.*\\.(${assetsSuffix})$)`, // All imports from node_modules
`^@\/(?!.*\\.(${assetsSuffix})$)`, // All imports starts with "@/web/"
`^\\\..(?!.*\\.(${assetsSuffix})$)|^\\\.$`, // All imports starts with "."
`^(?!(@\/)|(\\.)|(\\..)[a-z@]).*\\.(${assetsSuffix})$`, // All asserts imports from node_modules
`^@\/.*\\\.(${assetsSuffix})$`, // All assets imports starts with "@/web/"
`\\\.(${assetsSuffix})$`, // All assets imports starts with "."
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrderParserPlugins: ['classProperties', 'decorators-legacy', 'typescript'],
};